-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (77 loc) · 1.94 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
69
70
71
72
73
74
75
76
77
78
79
80
services:
shutter-api:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD:
DB_NAME: shutter_api
DB_SSL_MODE: disable
RPC_URL:
SHUTTER_REGISTRY_CONTRACT_ADDRESS:
KEY_BROADCAST_CONTRACT_ADDRESS:
KEYPER_SET_MANAGER_CONTRACT_ADDRESS:
KEYPER_HTTP_URL:
SIGNING_KEY:
SERVER_PORT: 8001
P2P_PORT: 23003
P2P_KEY:
P2P_BOOTSTRAP_ADDRESSES:
P2P_DISCOVERY_NAMESPACE:
P2P_ENVIRONMENT:
LOG_LEVEL:
METRICS_ENABLED:
METRICS_HOST:
METRICS_PORT:
ports:
- "8001:8001"
- "23003:23003"
- "4000:4000"
command: ["./shutter-api"]
depends_on:
db:
condition: service_healthy
labels:
caddy: "${SERVICE_DOMAIN_NAME}"
caddy.@browser: "method GET"
caddy.reverse_proxy: "{{ upstreams 8001 }}"
caddy.header.Access-Control-Allow-Methods: "GET, POST, OPTIONS"
caddy.header.Access-Control-Allow-Headers: "Content-Type, Authorization"
db:
image: postgres:14.12
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=shutter_api
volumes:
- ./pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_interval: "2s"
start_period: "30s"
interval: "30s"
timeout: "5s"
retries: 3
caddy:
image: lucaslorentz/caddy-docker-proxy:latest
restart: always
volumes:
- ${DATA_DIR:-./data}/caddy:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "443:443"
- "443:443/udp"
labels:
caddy.email: "[email protected]"
node_exporter:
image: prom/node-exporter:latest
container_name: my_node_exporter
restart: unless-stopped
ports:
- "9100:9100"