blob: b9edb6b673b397d77b6dc03d899be6ed26f9fa7d (
plain)
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
|
# For prebuilt, production environments
services:
database:
image: docker.io/library/couchdb:3.3
environment:
- COUCHDB_USER=${FLOHMARKT_DB_USER}
- COUCHDB_PASSWORD=${FLOHMARKT_DB_PASSWORD}
volumes:
- ./couchdb_data:/opt/couchdb/data
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5984"]
interval: 10s
timeout: 5s
retries: 3
restart: "always"
init:
command: initdb
image: codeberg.org/flohmarkt/flohmarkt:0.20.0
env_file:
- .env
volumes:
- ./flohmarkt_data:/var/lib/flohmarkt
- ./flohmarkt.conf:/etc/flohmarkt/flohmarkt.conf:rw
depends_on:
database:
condition: service_healthy
restart: "no"
web:
command: web
image: codeberg.org/flohmarkt/flohmarkt:0.20.0
env_file:
- .env
volumes:
- ./flohmarkt_data:/var/lib/flohmarkt
ports:
- "8000:8000"
depends_on:
database:
condition: service_healthy
init:
condition: service_completed_successfully
restart: "always"
volumes:
couchdb_data:
flohmarkt_data:
|