-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (51 loc) · 1.45 KB
/
docker-compose.yaml
File metadata and controls
55 lines (51 loc) · 1.45 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
# nginx proxy address - http://172.17.0.1:8087
x-logging: &default-logging
driver: json-file
options:
max-size: "5m"
max-file: "1"
services:
wallabag:
image: wallabag/wallabag:latest
container_name: wallabag-app
restart: unless-stopped
logging: *default-logging
networks:
- wallabag
ports:
- "8087:8087"
environment:
TZ: ${TZ:-America/New_York}
DATABASE_URL: postgresql://${DB_USER_NAME:-wallabag}:${DB_USER_PASS:-changeme_db_password}@wallabag-db:5432/${DB_CREATE_DATABASE_NAME:-wallabag}
volumes:
- ./rootfs/data/wallabag:/var/www/data
- ./rootfs/config/wallabag:/config
depends_on:
- wallabag-db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8087"]
interval: 30s
timeout: 10s
retries: 3
wallabag-db:
image: postgres:16-alpine
container_name: wallabag-db
restart: unless-stopped
logging: *default-logging
networks:
- wallabag
environment:
TZ: ${TZ:-America/New_York}
POSTGRES_DB: ${DB_CREATE_DATABASE_NAME:-wallabag}
POSTGRES_USER: ${DB_USER_NAME:-wallabag}
POSTGRES_PASSWORD: ${DB_USER_PASS:-changeme_db_password}
volumes:
- ./rootfs/data/db/postgres/wallabag:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 3
networks:
wallabag:
external: false