-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
52 lines (50 loc) · 1.14 KB
/
docker-compose.yaml
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
services:
hive:
build: .
ports:
- "6869:6869"
env_file: secrets.env
environment:
HIVE_DB_URL: postgresql://hive:hive@db:5432/hive
TZ: Europe/Stockholm
develop:
watch:
- path: ./static
action: sync # no need to rebuild
target: /hive/static
- path: ./hive.toml
action: sync+restart # apply new config
target: /hive/hive.toml
- path: ./src
action: rebuild
- path: ./locales
action: rebuild
- path: ./migrations
action: rebuild
- path: ./templates
action: rebuild
- path: ./Cargo.*
action: rebuild
- path: ./rinja.toml
action: rebuild
depends_on:
db:
condition: service_healthy
db:
image: postgres:16
ports:
- "5432:5432"
volumes:
- hive-db-data:/data/db
environment:
POSTGRES_USER: hive
POSTGRES_PASSWORD: hive
POSTGRES_DB: hive
PGDATA: /data/db
healthcheck:
test: ["CMD", "pg_isready", "-U", "hive"]
interval: 2s
timeout: 2s
retries: 3
volumes:
hive-db-data: