-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 1.14 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
version: '3.8'
services:
backend:
image: ${ECR_REGISTRY}:collaborative-editor-backend-${GIT_BRANCH}-latest
container_name: backend-container
environment:
# get this variable from .env file
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
restart: on-failure
ports:
#target port : container app run port
- 8000:8000
networks:
- app-network
frontend:
image: ${ECR_REGISTRY}:collaborative-editor-frontend-${GIT_BRANCH}-latest
container_name: frontend-container
ports:
- "3000:3000"
depends_on:
- backend
environment:
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
networks:
- app-network
nginx:
image: nginx:latest
container_name: nginx-container
ports:
- "80:80" # Expose port 80 for Nginx
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf # Mount your custom Nginx configuration file
depends_on:
- frontend
- backend
networks:
- app-network
networks:
app-network:
driver: bridge