-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
90 lines (77 loc) · 1.61 KB
/
docker-compose.dev.yaml
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
82
83
84
85
86
87
88
89
90
# version: '3'
# services:
# mongo:
# image: mongo:latest
# restart: unless-stopped
# ports:
# - "27017:27017"
# environment:
# - MONGODB_CONNECTION_URL=$MONGODB_CONNECTION_URL
# nginx:
# image: nginx
# depends_on:
# - api
# - client
# build: ./nginx
# restart: unless-stopped
# ports:
# - "3050:3050"
# api:
# build: ./backend
# restart: unless-stopped
# env_file: ./.env
# ports:
# - "5000:5000"
# volumes:
# - /app/node_modules
# - ./backend:/app
# environment:
# - SESSION_SECRET_KEY=$SESSION_SECRET_KEY
# - ELASTIC_EMAIL_API_KEY=$ELASTIC_EMAIL_API_KEY
# client:
# build:
# context: ./client
# restart: unless-stopped
# ports:
# - "3000:80"
version: '3'
services:
client:
build:
context: ./client
ports:
- 3000:3000
networks:
- timecard
environment:
- PROD_HOST_IP='localhost'
- ENV='dev'
container_name: my-client-container
api:
build:
context: ./backend
ports:
- '5000:5000'
networks:
- timecard
environment:
- SESSION_SECRET_KEY=$SESSION_SECRET_KEY
- ELASTIC_EMAIL_API_KEY=$ELASTIC_EMAIL_API_KEY
- MONGODB_CONNECTION_URL=$MONGODB_CONNECTION_URL
- PROD_HOST_IP=$PROD_HOST_IP
- ENV=$ENV
container_name: my-api-container
nginx:
image: nginx
build: ./nginx
ports:
- 3050:3050
depends_on:
- api
- client
networks:
- timecard
container_name: my-nginx-container
networks:
timecard:
driver: bridge