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:
@@ -4,12 +4,3 @@
|
||||
SERVER_PORT=8000
|
||||
SECRET_KEY=my_very_secret_key
|
||||
|
||||
# POSTGRESQL
|
||||
|
||||
PGHOST=db
|
||||
PGPORT=5432
|
||||
PGUSER=postgres
|
||||
PGPASSWORD=postgres
|
||||
PGDATABASE=postgres
|
||||
SSLmode=disable
|
||||
PGURL='postgres://postgres:postgres@db:5432/postgres?sslmode=disable'
|
||||
@@ -1,20 +1,4 @@
|
||||
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
|
||||
|
||||
api:
|
||||
container_name: api
|
||||
build:
|
||||
@@ -31,10 +15,5 @@ services:
|
||||
command: ./bin/api
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
postgres-db:
|
||||
api:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user