-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.server.yml
More file actions
46 lines (46 loc) · 1.2 KB
/
compose.server.yml
File metadata and controls
46 lines (46 loc) · 1.2 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
services:
db:
image: postgres:15
container_name: postgres
volumes:
- ../postgres:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=gancio
- POSTGRES_DB=gancio
- POSTGRES_PASSWORD=gancio
- PGDATA=/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "sh -c 'pg_isready -U gancio -d gancio'" ]
interval: 2s
timeout: 5s
retries: 10
restart: always
ports:
- 5432:5432
gancio:
restart: always
build:
context: .
dockerfile: Dockerfile
container_name: gancio
environment:
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
- NODE_ENV=production
- GANCIO_DB_DIALECT=postgres
- GANCIO_DB_HOST=db
- GANCIO_DB_PORT=5432
- GANCIO_DB_DATABASE=gancio
- GANCIO_DB_USERNAME=gancio
- GANCIO_DB_PASSWORD=gancio
- config_path=/home/node/data/config.json
- N8N_WEBHOOK_URL=https://n8n.baricittaperta.xyz/webhook/ganciobot
- N8N_TOKEN=supersegreto
volumes:
- ../data:/home/node/data
ports:
- "0.0.0.0:80:13120"
depends_on:
db:
condition: service_healthy