modified: docker-compose.yaml
modified: serv_keycloak/docker-compose.yaml new file: serv_postgres/.env new file: serv_postgres/docker-compose.yaml modified: serv_rest_api/.env modified: serv_rest_api/docker-compose.yml Create postgres serv
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# POSTGRESQL
|
||||
|
||||
PGHOST=db
|
||||
PGPORT=5432
|
||||
PGUSER=postgres
|
||||
PGPASSWORD=postgres
|
||||
PGDATABASE=postgres
|
||||
SSLmode=disable
|
||||
PGURL='postgres://postgres:postgres@db:5432/postgres?sslmode=disable'
|
||||
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
container_name: db
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${PGPORT}:${PGPORT}"
|
||||
volumes:
|
||||
- postgres-db:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=${PGUSER}
|
||||
- POSTGRES_PASSWORD=${PGPASSWORD}
|
||||
- POSTGRES_DB=${PGDATABASE}
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres-db:
|
||||
Reference in New Issue
Block a user