Repository navigation
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
69 lines (67 loc) · 1.9 KB
/
Copy pathdocker-compose.build.yml
File metadata and controls
69 lines (67 loc) · 1.9 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
58
59
60
61
62
63
64
65
66
67
68
69
services:
app:
build:
context: .
dockerfile: Dockerfile
image: taxhacker:local
ports:
- "127.0.0.1:7331:7331"
environment:
- NODE_ENV=production
- SELF_HOSTED_MODE=true
- UPLOAD_PATH=/app/data/uploads
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-taxhacker}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-}
volumes:
- ./data:/app/data
restart: unless-stopped
security_opt:
- no-new-privileges:true
logging:
driver: "local"
options:
max-size: "100M"
max-file: "3"
cron:
image: taxhacker:local
environment:
- NODE_ENV=production
- SELF_HOSTED_MODE=true
- UPLOAD_PATH=/app/data/uploads
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-taxhacker}
# Optional override. When unset, both containers use the same persisted secret from ./data.
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-}
volumes:
- ./data:/app/data
- ./etc/crontab:/mnt/crontab:ro
restart: unless-stopped
depends_on:
- postgres
- app
security_opt:
- no-new-privileges:true
command: ["docker-cron-entrypoint.sh"]
logging:
driver: "local"
options:
max-size: "100M"
max-file: "3"
postgres:
image: postgres:17-alpine
container_name: taxhacker-postgres
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in your .env file}
- POSTGRES_DB=${POSTGRES_DB:-taxhacker}
volumes:
- ./pgdata:/var/lib/postgresql/data
restart: unless-stopped
ports:
- "127.0.0.1:5432:5432"
security_opt:
- no-new-privileges:true
logging:
driver: "local"
options:
max-size: "100M"
max-file: "3"