-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
70 lines (64 loc) · 1.7 KB
/
docker-compose.dev.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
version: '3.7'
services:
wag-server:
build:
context: .
dockerfile: dockerfiles/Dockerfile.dev
volumes:
- ${WAG_CONFIG_PATH}:/opt/wag/conf
- dist-client:/opt/wag/dist
- dist-server:/opt/wag/dist-server
- ./install/docker/server-build-and-run.sh:/var/opt/install/server-build-and-run.sh
- ./src:/opt/wag/src
- ./build.js:/opt/wag/build.js
- ./webpack.server.js:/opt/wag/webpack.server.js
- ./package.json:/opt/wag/package.json
- ./assets:/opt/wag/assets
- ./html:/opt/wag/html
networks:
- wag
# to access e.g. a non-docker database, use:
# extra_hosts:
# - [required hostname]:[IP address of the host]
command: "/var/opt/install/server-build-and-run.sh"
wag-client:
build:
context: .
dockerfile: dockerfiles/Dockerfile.dev
ports:
# webpack dev server port
- "9001:9001"
volumes:
- ${WAG_CONFIG_PATH}:/opt/wag/conf
- ./src:/opt/wag/src
- ./html:/opt/wag/html
- ./build.js:/opt/wag/build.js
- ./webpack.dev.js:/opt/wag/webpack.dev.js
- ./package.json:/opt/wag/package.json
- ./assets:/opt/wag/assets
- dist-client:/opt/wag/dist
networks:
- wag
command: [ "npm", "start", "devel-server" ]
nginx:
image: nginx:latest
ports:
- "8081:80"
depends_on:
- wag-server
volumes:
- ./install/docker/nginx.dev.conf:/etc/nginx/conf.d/default.conf
- ./assets:/opt/wag/assets
- dist-client:/opt/wag/dist
- dist-server:/opt/wag/dist-server
networks:
- wag
redis:
image: redis:latest
networks:
- wag
volumes:
dist-server: {}
dist-client: {}
networks:
wag: {}