forked from nihonium/nyanimedb
feat: initial docker-compose commit
This commit is contained in:
parent
ad79c5faa5
commit
21713c185c
2 changed files with 43 additions and 0 deletions
31
deploy/docker-compose.yml
Normal file
31
deploy/docker-compose.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:${POSTGRES_VERSION}
|
||||
container_name: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
ports:
|
||||
- "${POSTGRES_PORT}:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:${PGADMIN_VERSION}
|
||||
container_name: pgadmin
|
||||
restart: always
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
|
||||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
|
||||
ports:
|
||||
- "${PGADMIN_PORT}:80"
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- pgadmin_data:/var/lib/pgadmin
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
pgadmin_data:
|
||||
12
deploy/example.env
Normal file
12
deploy/example.env
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# PostgreSQL configuration
|
||||
POSTGRES_VERSION=18
|
||||
POSTGRES_USER=${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB=${POSTGRESS_DB}
|
||||
POSTGRES_PORT=5432
|
||||
|
||||
# pgAdmin configuration
|
||||
PGADMIN_VERSION=9.8
|
||||
PGADMIN_EMAIL=${PGADMIN_EMAIL}
|
||||
PGADMIN_PASSWORD=${PGADMIN_PASSWORD}
|
||||
PGADMIN_PORT=8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue