I can't change default postgres database password
I tried to install gancio on debian 10 and I encounter at least two error messages, when typing docker-compose build
.
The first is:
services.gancio.ports is invalid: Invalid port "localhost:13120:13120", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]
I guess I solved the issue with replacing localhost:13120:13120
by 127.0.0.1:13120:13120
. However, then Named volume "db:/var/lib/postgres:rw" is used in service "db" but no declaration was found in the volumes section.
is prompted.
I don't know what to do about that. For the record, here is my docker-compose.yml:
version: '3'
services:
db:
image: postgres
container_name: postgres
volumes:
- db:/var/lib/postgres
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=gancio
- POSTGRES_DB=gancio
- POSTGRES_PASSWORD=randomly_generated_password
restart: always
ports:
- 5432:5432
gancio:
build: .
image: node:latest
environment:
- DEBUG=*,-babel,-follow-redirects,-send,-body-parser:*,-express:*,-connect:*,-sequelize:*
container_name: gancio
restart: always
command: gancio start --docker --db=postgres
volumes:
- ./config.json:/opt/gancio/config.json
- ./uploads:/opt/gancio/uploads
depends_on:
- db
ports:
- "127.0.0.1:13120:13120"
Would be glad about some advice :)
Edited by allilengyi