-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (65 loc) · 1.58 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
67
68
name: shutter-galxe_server
services:
postgres:
image: postgres:14-alpine
restart: always
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 5s
timeout: 5s
retries: 5
command:
- "postgres"
- "-c"
- "wal_level=logical"
volumes:
- ${DATA_DIR:-./data}/db:/var/lib/postgresql/data
setup-postgres:
image: postgres:14-alpine
entrypoint: ["psql", "-f", "/migration.sql"]
environment:
PGHOST: "postgres"
PGDATABASE: "postgres"
PGUSER: "postgres"
PGPASSWORD: "postgres"
volumes:
- ./migration.sql:/migration.sql:ro
depends_on:
postgres:
condition: service_healthy
app:
build:
context: .
dockerfile: docker/Dockerfile
restart: always
environment:
DB_PATH:
WEB3_PROVIDER_URI:
SEQUENCER_ADDRESS:
ERPC_ADDRESS:
volumes:
- ${DATA_DIR:-./data}/app:/data
depends_on:
setup-postgres:
condition: service_completed_successfully
postgres:
condition: service_healthy
labels:
caddy: "${APP_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 5000}}"
caddy:
image: lucaslorentz/caddy-docker-proxy:latest
restart: always
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ${DATA_DIR:-./data}/caddy:/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
caddy.email: "[email protected]"