mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
39 lines
942 B
YAML
39 lines
942 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:
|
|
build: .
|
|
restart: always
|
|
image: node:17.4-slim
|
|
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_DATABASE=gancio
|
|
- GANCIO_DB_USERNAME=gancio
|
|
- GANCIO_DB_PASSWORD=gancio
|
|
command: gancio start --docker
|
|
entrypoint: /entrypoint.sh
|
|
volumes:
|
|
- ./data:/home/node/data
|
|
ports:
|
|
- "127.0.0.1:13120:13120"
|
|
depends_on:
|
|
- db
|