-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
60 lines (54 loc) · 1.1 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
version: '3'
services:
frontend:
build:
context: ./client
dockerfile: Dockerfile.dev
image: frontend-dev
container_name: frontend-dev
env_file:
- ./client/.env.development
# ports:
# - 5173:5173
volumes:
- ./client:/app
# - /app/node_modules
networks:
- dev-network
backend:
build:
context: ./server
dockerfile: Dockerfile.dev
image: backend-dev
container_name: backend-dev
env_file:
- ./server/.env.development
environment:
- NODE_ENV=development
# ports:
# - 3000:3000
volumes:
- ./server:/app
# - /app/node_modules
networks:
- dev-network
database:
container_name: database-dev
ports:
- 27017:27017
volumes:
- db-data-dev:/data/db
networks:
- dev-network
nginx:
container_name: nginx-dev
volumes:
- ./nginx/default.dev.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/fake-ssl:/etc/nginx/ssl:ro
networks:
- dev-network
volumes:
db-data-dev:
networks:
dev-network:
driver: bridge