-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 919 Bytes
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
version: "3.9"
services:
faucet:
image: faucetdb/faucet:latest
container_name: faucet
restart: unless-stopped
ports:
- "8080:8080"
environment:
FAUCET_PG_HOST: postgres
FAUCET_PG_PORT: "5432"
FAUCET_PG_USER: faucet
FAUCET_PG_PASSWORD: faucet
FAUCET_PG_DATABASE: demo
volumes:
- faucet_data:/data
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16
container_name: faucet-postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_DB: demo
POSTGRES_USER: faucet
POSTGRES_PASSWORD: faucet
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U faucet -d demo"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
volumes:
faucet_data:
postgres_data: