Repository navigation
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
70 lines (68 loc) · 2.11 KB
/
Copy pathdocker-compose.production.yml
File metadata and controls
70 lines (68 loc) · 2.11 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
70
services:
app:
image: ghcr.io/vas3k/taxhacker:${GITHUB_SHA:-latest}
container_name: taxhacker_app
networks:
- taxhacker_network
environment:
- NODE_ENV=production
- DATABASE_URL=${DATABASE_URL:-postgresql://taxhacker:${POSTGRES_PASSWORD:-}@host.docker.internal:6432/taxhacker}
- DIRECT_URL=${DIRECT_URL:-postgresql://taxhacker:${POSTGRES_PASSWORD:-}@host.docker.internal:5432/taxhacker}
- BASE_URL=https://taxhacker.app
- SELF_HOSTED_MODE=false
- UPLOAD_PATH=/app/data/uploads
env_file:
- .env
volumes:
- ./data:/app/data
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "node", "-e", 'const s=require("net").connect(7331,"127.0.0.1",()=>{s.end();process.exit(0)});s.on("error",()=>process.exit(1));s.setTimeout(3000,()=>process.exit(1));']
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
ports:
- "127.0.0.1:7331:7331"
security_opt:
- no-new-privileges:true
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "3"
cron:
image: ghcr.io/vas3k/taxhacker:${GITHUB_SHA:-latest}
container_name: taxhacker_cron
networks:
- taxhacker_network
environment:
- NODE_ENV=production
- DATABASE_URL=${DATABASE_URL:-postgresql://taxhacker:${POSTGRES_PASSWORD:-}@host.docker.internal:6432/taxhacker}
- DIRECT_URL=${DIRECT_URL:-postgresql://taxhacker:${POSTGRES_PASSWORD:-}@host.docker.internal:5432/taxhacker}
- BASE_URL=https://taxhacker.app
- SELF_HOSTED_MODE=false
- UPLOAD_PATH=/app/data/uploads
env_file:
- .env
volumes:
- ./data:/app/data
- ./etc/crontab:/mnt/crontab:ro
restart: unless-stopped
depends_on:
- app
extra_hosts:
- "host.docker.internal:host-gateway"
security_opt:
- no-new-privileges:true
command: ["docker-cron-entrypoint.sh"]
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "3"
networks:
taxhacker_network:
driver: bridge