-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
56 lines (50 loc) · 1.29 KB
/
docker-compose.prod.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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfiles/Dockerfile.prod
image: <your-ecr-repo-url>/backend:<backend-image-tag>
logging:
driver: "awslogs"
options:
awslogs-region: ""
awslogs-group: ""
awslogs-stream: ""
ports:
- "8000:8000"
env_file:
- ./backend/env/prod.env
volumes:
- ./backend:/app
frontend:
build:
context: ./frontend
dockerfile: Dockerfiles/Dockerfile.prod
image: <your-ecr-repo-url>/frontend:<frontend-image-tag>
ports:
- '80:80'
- '443:443'
logging:
driver: "awslogs"
options:
awslogs-region: ""
awslogs-group: ""
awslogs-stream: ""
volumes:
- ./frontend:/app
- certbot-conf:/etc/letsencrypt
depends_on:
- backend
- certbot
certbot:
image: certbot/certbot
volumes:
- certbot-conf:/etc/letsencrypt
- certbot-www:/var/www/certbot
command: certonly --webroot --webroot-path=/var/www/certbot --email [email protected] --agree-tos -d example.com
# No db service for production as we will use a PostgreSQL RDS instance.
# Instructions on how to set up will be added to the documentation.
volumes:
certbot-conf:
certbot-www: