-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.45 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
services:
autopulse:
image: danonline/autopulse
container_name: autopulse
restart: always
depends_on:
postgres:
condition: service_healthy
ports:
- 2875:2875
networks:
- db
volumes:
- ./config.yaml:/app/config.yaml
environment:
AUTOPULSE__APP__DATABASE_URL: postgres://autopulse:autopulse@postgres/autopulse
# PUID: 1000
# PGID: 1000
# TZ: Europe/London
# Optional self-hosted UI
# ui:
# image: danonline/autopulse:ui
# container_name: autopulse-ui
# restart: always
# ports:
# - 2880:2880
# environment:
# # SECRET: your_secret_here # Optional to prevent being logged out when the container restarts
# # ORIGIN: http://localhost:2880 # Possibly required if you're accessing via ip, see: https://github.com/dan-online/autopulse/issues/85#issuecomment-2454446338
# # networks: # If you want to use an internal autopulse network, ex. http://autopulse:2875
# # - db
postgres:
image: postgres:alpine
container_name: autopulse-postgres
restart: always
networks:
- db
environment:
POSTGRES_USER: autopulse
POSTGRES_PASSWORD: autopulse
POSTGRES_DB: autopulse
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./db:/var/lib/postgresql/data
networks:
db:
driver: bridge