-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.39 KB
/
docker-compose.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
services:
db:
container_name: app_db
image: postgres:14
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgre-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER}']
interval: 1s
timeout: 1s
retries: 30
networks:
- private
app:
container_name: app_app
build:
context: .
args:
NEXT_PUBLIC_EDDSA_PUBLIC_KEY: ${NEXT_PUBLIC_EDDSA_PUBLIC_KEY}
restart: always
environment:
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=public'
EDDSA_PRIVATE_KEY: ${EDDSA_PRIVATE_KEY}
NEXT_PUBLIC_EDDSA_PUBLIC_KEY: ${NEXT_PUBLIC_EDDSA_PUBLIC_KEY}
SYNCHRONIZATION_FALLBACK_CONTACT_CATEGORY: ${SYNCHRONIZATION_FALLBACK_CONTACT_CATEGORY}
SYNCHRONIZATION_START_DATE: ${SYNCHRONIZATION_START_DATE}
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.app.entrypoints=websecure'
- 'traefik.http.routers.app.rule=Host(`labagora.e-cancer.fr`)'
- 'traefik.http.routers.app.tls=true'
networks:
- private
- proxy
depends_on:
db:
condition: service_healthy
volumes:
postgre-data:
networks:
private:
external: false
proxy:
external: true