-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
190 lines (171 loc) · 3.26 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
version: '3'
services:
python:
build:
context: ./python
dockerfile: Dockerfile
container_name: mosa-python
command: pipenv run uvicorn main:app --host 0.0.0.0 --reload
volumes:
- ./python:/app
ports:
- '50000:8000'
depends_on:
- db
tty: true
go:
build:
context: ./go
dockerfile: Dockerfile
container_name: mosa-go
ports:
- '50001:8080'
volumes:
- ./go:/app
rust:
build:
context: ./rust
dockerfile: Dockerfile
container_name: mosa-rust
command: cargo run
volumes:
- ./rust:/app
ports:
- "50002:8080"
ts:
build:
context: ./typescript
container_name: mosa-ts
volumes:
- ./typescript:/opt/typescript
- ./typescript/node_modules:/opt/typescript/node_modules
ports:
- "50003:8000"
ruby:
build:
context: ./ruby
dockerfile: Dockerfile
container_name: mosa-ruby
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 8080 -b '0.0.0.0'"
ports:
- 50004:8080
volumes:
- ./ruby:/app
depends_on:
- db
cpp:
build:
context: ./cpp
dockerfile: Dockerfile
container_name: mosa-cpp
volumes:
- ./cpp:/app
command: bash -c "cd /app/myapp/build && ./myapp"
ports:
- 50005:8080
depends_on:
- db
cs:
build:
context: ./cs
container_name: mosa-cs
volumes:
- ./cs:/opt/cs
ports:
- 50006:8080
r:
build:
context: ./R
dockerfile: Dockerfile
container_name: mosa-r
volumes:
- './R/api.R:/plumber.R'
ports:
- 50007:8000
java:
build:
context: ./java
container_name: mosa-java
ports:
- 50008:8080
tty: true
volumes:
- ./java:/opt/java
dart:
build:
context: ./dart
container_name: mosa-dart
ports:
- 50009:8080
volumes:
- ./dart:/opt/dart
elixir:
build:
context: ./elixir
dockerfile: Dockerfile
container_name: mosa-elixir
ports:
- '50010:8080'
command: bash -c "mix deps.get && mix ecto.setup && mix phx.server"
tty: true
environment:
- MIX_ENV=dev
- PORT=8080
volumes:
- ./elixir:/app
depends_on:
- db
kotlin:
build:
context: ./kotlin
container_name: mosa-kotlin
ports:
- 50011:8080
volumes:
- ./kotlin:/opt/kotlin
php:
build:
context: ./php
dockerfile: Dockerfile
container_name: mosa-php
ports:
- '50012:80'
volumes:
- ./php:/app
scala:
build:
context: ./scala
container_name: mosa-scala
ports:
- 50013:8080
volumes:
- ./scala:/opt/scala
swift:
build:
context: ./swift
container_name: mosa-swift
ports:
- 50014:8080
volumes:
- ./swift:/opt/swift
db:
container_name: mosa-db
image: postgres:14
volumes:
- dbdata:/var/lib/postgresql/data/
- ./db/init:/docker-entrypoint-initdb.d
env_file:
- .env
ports:
- "5432:5432"
adminer:
container_name: mosa-adminer
image: adminer:4.7.5
restart: always
ports:
- "8080:8080"
depends_on:
- db
volumes:
dbdata: null
node_modules: