Skip to content

Instantly share code, notes, and snippets.

@x4x
Forked from plajjan/docker-compose.yml
Last active July 7, 2023 15:52
Show Gist options
  • Save x4x/16072e9a055b39f1bcb36cfc821beaad to your computer and use it in GitHub Desktop.
Save x4x/16072e9a055b39f1bcb36cfc821beaad to your computer and use it in GitHub Desktop.
NIPAP docker compose
NIPAP_USERNAME=www
NIPAPD_PASSWORD=nipapP4ssw0rd
WWW_USERNAME=admin
WWW_PASSWORD=123456
POSTGRES_PASSWORD=S3cretDBPas5
version: '3.2'
services:
nipap-db:
image: nipap/postgres-ip4r
volumes:
- 'db:/var/lib/postgres/data'
environment:
- PGDATA=/var/lib/postgres/data/pgdata
- POSTGRES_USER=nipap
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=nipap
nipapd:
image: 'nipap/nipapd:master'
depends_on:
- nipap-db
#links:
#- nipap-db
environment:
- DB_USERNAME=nipap
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_HOST=nipap-db
- DB_NAME=nipap
- NIPAP_USERNAME=${NIPAP_USERNAME}
- NIPAP_PASSWORD=${NIPAPD_PASSWORD}
nipap-www:
image: nipap/nipap-www
ports:
- '8099:80'
#links:
#- nipapd
depends_on:
- nipap-db
environment:
- NIPAPD_USERNAME=${NIPAP_USERNAME}
- NIPAPD_PASSWORD=${NIPAPD_PASSWORD}
- WWW_USERNAME=${WWW_USERNAME}
- WWW_PASSWORD=${WWW_PASSWORD}
volumes:
db:
@louishot
Copy link

Wrong name. the database is not persistent
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- PGDATA=/var/lib/postgres/data/pgdata

@idhirandar
Copy link

500:
Server Error
An internal server error occurred

popup appears all the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment