-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (42 loc) · 972 Bytes
/
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
version: '3'
volumes:
database_data:
driver: local
web_data:
services:
api:
image: nginx
environment:
- APP_HOSTNAME=default
ports:
- 80:80
- 443:443
volumes:
- ./api/conf.d/:/etc/nginx/conf.d/
- ./api/mime_types:/etc/nginx/mime_types
- ./api/logs/:/etc/nginx/logs/
- ./ssl/:/etc/nginx/ssl/
- web_data:/src/dist/
links:
- "game:game"
web:
build: ./web/
volumes:
- ./web/src/:/src/src/
- ./web/package.json:/src/package.json
- ./web/gulpfile.js:/src/gulpfile.js
- ./web/webpack.config.js:/src/webpack.config.js
- web_data:/src/dist/
command: [npm, run, watch]
game:
build: ./game/
expose:
- 8080
ports:
- 1099:1099
volumes:
- ./game/project/:/game/project/
- ./game/src/:/game/src/
- ./game/target/:/game/target/
- ./game/.lib/:/game/.lib/
command: [sbt, "~;jetty:stop;jetty:start"]