-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.11 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
version: "3"
services:
frontend:
build: ./frontend
container_name: test-app-frontend
command: serve -s build -l 3000
restart: always
ports:
- "3000:3000"
environment:
- PORT=3000
depends_on:
- backend
networks:
- test-app-network
backend:
build: ./backend
container_name: test-app-backend
command: npm run start
restart: always
ports:
- "3001:3001"
environment:
- PORT=3001
- MONGO_URL=mongodb://mongodb:27017/db
networks:
- test-app-network
nginx:
image: nginx:stable-alpine
container_name: test-app-nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf.prod:/etc/nginx/conf.d/nginx.conf
depends_on:
- frontend
- backend
networks:
- test-app-network
mongodb:
image: mongo:latest
command:
- "--logpath"
- "/var/log/mongodb/mongodb.log"
container_name: test-app-mongodb
restart: always
volumes:
- mongodb:/data/db
networks:
- test-app-network
volumes:
mongodb:
networks:
test-app-network:
driver: bridge