gancio-upstream/docs/docker/postgres/docker-compose.yml

41 lines
953 B
YAML
Raw Normal View History

2019-07-16 23:32:45 +02:00
version: '3'
services:
db:
image: postgres
container_name: postgres
volumes:
2020-10-30 17:52:41 +01:00
- ./postgres:/var/lib/postgresql/data
2019-07-16 23:32:45 +02:00
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=gancio
- POSTGRES_DB=gancio
- POSTGRES_PASSWORD=gancio
2020-11-03 23:37:28 +01:00
- PGDATA=/var/lib/postgresql/data
2019-07-16 23:32:45 +02:00
restart: always
ports:
- 5432:5432
gancio:
build: .
2019-09-25 14:38:16 +02:00
restart: always
2022-05-10 16:10:20 +02:00
image: gancio
container_name: gancio
environment:
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
2021-07-01 10:56:12 +02:00
- NODE_ENV=production
2022-01-26 09:52:52 +01:00
- GANCIO_DB_DIALECT=postgres
- GANCIO_DB_HOST=db
2022-05-20 13:54:14 +02:00
- GANCIO_DB_PORT=5432
2022-01-26 09:52:52 +01:00
- GANCIO_DB_DATABASE=gancio
2022-01-26 15:26:28 +01:00
- GANCIO_DB_USERNAME=gancio
2022-01-26 09:52:52 +01:00
- GANCIO_DB_PASSWORD=gancio
command: gancio start
2021-07-01 10:56:12 +02:00
entrypoint: /entrypoint.sh
2019-07-16 23:32:45 +02:00
volumes:
- ./data:/home/node/data
ports:
- "127.0.0.1:13120:13120"
2019-08-06 01:12:05 +02:00
depends_on:
2019-07-16 23:32:45 +02:00
- db