-
-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database configuration error when deploy with docker compose #2547
Comments
Hello @fakegit version: '2.3'
services:
freshrss-postgresql:
image: postgres:latest
restart: unless-stopped
networks:
- freshrss-network
volumes:
- 'pgsql-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=freshrss
- POSTGRES_PASSWORD=xxxxxx
- POSTGRES_DB=freshrss
freshrss:
image: freshrss/freshrss:latest
restart: unless-stopped
ports:
- "1201:80"
depends_on:
- freshrss-postgresql
networks:
- freshrss-network
volumes:
- 'freshrss-data:/var/www/FreshRSS/data'
environment:
- CRON_MIN=*/20
networks:
freshrss-network:
external: true
volumes:
pgsql-data:
external: true
freshrss-data:
external: true |
P.S.: If you have time to send a PR to make our documentation/example better, that would be nice :-) |
P.P.S: We should update the example to use version 3 of docker-compose |
@Alkarex thanks, it works now by putting postgres in the same network, which is missed in the https://github.com/FreshRSS/FreshRSS/blob/dev/Docker/docker-compose.yml I'm not familiar with pr workflow, and my english is not good, however, i will give a try. Thanks again. |
Done in #2553 |
Follow https://github.com/FreshRSS/FreshRSS/blob/master/Docker/README.md
My docker compose config file:
everything works fine until website install step 3: Database configuration
I tried "Host" with localhost, 127.0.0.1, 172.21.0.2(freshrss-postgresql container's network ip), freshrss-postgresql, even my server ip, none of them work.
The text was updated successfully, but these errors were encountered: