forked from equal-shares/equal-shares
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.docker-compose.yaml
46 lines (42 loc) · 1.06 KB
/
prod.docker-compose.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
version: '3.7'
services:
frontend:
build:
context: ./frontend
target: prod
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./prod/frontend/nginx/default.conf:/etc/nginx/conf.d/default.conf
backend:
build:
context: ./backend
target: prod
restart: unless-stopped
depends_on:
- db
ports:
- "8000:8000"
env_file: /app/backend.env
environment:
- PG_HOST=db
- API_RSA_PUBLIC_KEY=/app/equal-shares-api-public-key.pem
- API_RSA_PRIVATE_KEY=/app/equal-shares-api-private-key.pem
volumes:
- /app/keys/equal-shares-api-public-key.pem:/app/equal-shares-api-public-key.pem
- /app/keys/equal-shares-api-private-key.pem:/app/equal-shares-api-private-key.pem
db:
image: postgres:16
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 10s
retries: 120
environment:
- POSTGRES_PASSWORD=password
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: