-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontainer-compose.yaml
More file actions
57 lines (53 loc) · 1.11 KB
/
container-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.11 KB
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
services:
api:
build:
dockerfile: ./Containerfile
hostname: anna-api
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
networks:
- anna
volumes:
- package-data:/data/packages:Z
environment:
DB_HOST: anna-db
DB_PORT: "5432"
DB_NAME: anna
DB_USER: anna
DB_PASS: ${POSTGRES_PASSWORD:-password}
ANNA_WEB_DOMAINS: "http://localhost:5000;"
web:
build:
dockerfile: ./Containerfile-web
hostname: anna-web
ports:
- "5000:80"
networks:
- anna
environment:
ANNA_API_URL: http://localhost:8080/v3/index.json
db:
image: postgres:16-bookworm
hostname: anna-db
networks:
- anna
volumes:
- db-data:/var/lib/postgresql/data:Z
environment:
POSTGRES_DB: anna
POSTGRES_USER: anna
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
healthcheck:
test: ["CMD-SHELL", "pg_isready -d db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
networks:
anna:
volumes:
db-data:
package-data: