-
Notifications
You must be signed in to change notification settings - Fork 129
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
Issue with Postgres database #275
Labels
bug
Something isn't working
Comments
Just wondering if someone else could try this and let me know how you get on? Is it an actual bug or is it just me/my configuration ? Edit: I have tested this again with a new config and have the same result. |
@ALIP-0 # docker-compose.yaml
services:
wg-portal:
image: ghcr.io/h44z/wg-portal:latest
cap_add:
- NET_ADMIN
ports:
- 8888:8888
- 8080:8080
volumes:
- ./config.yml.sample:/app/config/config.yml
# Example from image docs https://hub.docker.com/_/postgres
postgres:
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: example # config.yml
advanced:
log_level: trace
config_storage_path: /etc/wireguard
core:
admin_user: admin
admin_password: admin
create_default_peer: false
create_default_peer_on_creation: false
web:
external_url: http://localhost:8888
request_logging: false
database:
type: postgres
dsn: "host=postgres user=postgres password=example dbname=postgres port=5432 sslmode=disable" WG-Portal logs
Postgres logs
Did you resolve the issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With postgres configured wgportal creates a number of tables and data, however when i login and goto the interfaces screen no interfaces are shown, despite one being configured in the db table - i get the following error;
Failed to load interfaces: unable to load all interfaces: ERROR: prepared statement "stmtcache_78bc77220c7a756ffad09fd606f629b582d36975c88309a4" already exists (SQLSTATE 42P05)
The text was updated successfully, but these errors were encountered: