mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
37 lines
889 B
YAML
37 lines
889 B
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
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
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
gancio:
|
|
restart: always
|
|
image: cisti/gancio
|
|
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
|
|
volumes:
|
|
- ./data:/home/node/data
|
|
ports:
|
|
- "127.0.0.1:13120:13120"
|
|
depends_on:
|
|
- db
|