-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.67 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
postgres:
image: postgres:15.2-alpine
env_file:
- webapp/.env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /data/postgres
volumes:
- ./data/postgres:/data/postgres
mercure:
image: dunglas/mercure:v0.14
env_file:
- webapp/.env
command: /usr/bin/caddy run --config /etc/caddy/Caddyfile.dev
environment:
- SERVER_NAME=":80"
webapp:
env_file:
- webapp/.env
environment:
- DOMAIN_SERVICE_URL=http://api-domain:80
- MERCURE_URL=http://mercure:80/.well-known/mercure
- MERCURE_PUBLIC_URL=/.well-known/mercure
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/labyrinth?serverVersion=15&charset=utf8
volumes:
- ./webapp/.env:/var/www/labyrinth/.env
- ./webapp/config/jwt:/var/www/labyrinth/config/jwt
webapp-migrations:
env_file:
- webapp/.env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/labyrinth?serverVersion=15&charset=utf8
depends_on:
- postgres
postgrest:
image: postgrest/postgrest
environment:
PGRST_DB_URI: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/labyrinth
PGRST_JWT_SECRET: "@/jwk/jwk.pub"
depends_on:
- postgres
volumes:
- ./webapp/config/jwt/jwk.pub:/jwk/jwk.pub
admin-proxy:
environment:
- POSTGREST_URL=http://postgrest:3000
depends_on:
- postgrest
proxy:
volumes:
- ./certs:/certs
- ./logs:/var/log/nginx
depends_on:
- admin-proxy
- webapp
- mercure