-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.compose.yaml
58 lines (55 loc) · 1.23 KB
/
prod.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
47
48
49
50
51
52
53
54
55
56
57
58
services:
postgres-ucpa:
image: postgres:15.8-alpine
container_name: ucpa-postgres
restart: always
networks:
- back
ports:
- '${UCPA_DATABASE_PORT_API:-5466}:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ucpa_facilitator
env_file:
- .env
chrome:
image: ghcr.io/browserless/chromium
container_name: chrome
ports:
- '3033:3000'
restart: always
networks:
- back
app-ucpa:
build:
context: .
container_name: app-ucpa
depends_on:
- postgres-ucpa
- chrome
command: >
sh -c "npm run db:migrate && npm start"
restart: always
networks:
- back
- web
volumes:
- ./certs:/app/certs
environment:
NODE_ENV: production
env_file:
- .env
labels:
traefik.enable: true
traefik.docker.network: web
traefik.http.routers.ucpa.rule: Host(`${URL}`)
traefik.http.routers.ucpa.entrypoints: websecure
traefik.http.routers.ucpa.tls: true
traefik.http.routers.ucpa.tls.certresolver: letsencrypt
networks:
back:
web:
external: true