-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
81 lines (76 loc) · 1.83 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
81 lines (76 loc) · 1.83 KB
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
services:
mongo:
image: mongo:latest
command: mongod --quiet --logpath /dev/null
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- 27018:27017
volumes:
- mongodb_data:/data/db
- mongodb_config:/data/configdb
mongo-express:
image: mongo-express:latest
restart: always
ports:
- 8084:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://admin:admin@mongo:27017/
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin
depends_on:
- mongo
wc-dev-backend:
build:
context: .
dockerfile: ./backend/Dockerfile.dev
env_file: ./backend/.env.docker.development
restart: always
ports:
- 4005:4005
depends_on:
- mongo
volumes:
- cdn:/var/www/cdn/wexcommerce
- ./backend:/wexcommerce/backend
- /wexcommerce/backend/node_modules
- backend_logs:/wexcommerce/backend/logs
wc-dev-admin:
build:
context: .
dockerfile: ./admin/Dockerfile.dev
env_file: ./admin/.env.docker.development
restart: always
depends_on:
- wc-dev-backend
ports:
- 8005:8005
volumes:
- ./admin:/wexcommerce/admin
- /wexcommerce/admin/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
wc-dev-frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile.dev
env_file: ./frontend/.env.docker.development
restart: always
depends_on:
- wc-dev-backend
ports:
- 8006:8006
volumes:
- ./frontend:/wexcommerce/frontend
- /wexcommerce/frontend/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
volumes:
cdn:
mongodb_data:
mongodb_config:
backend_logs: