Add PostgreSQL with DB for Keycloak
diff --git a/docker-compose.yml b/docker-compose.yml
index d600756..148b0c3 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -24,6 +24,16 @@
- ./nginx/sa.conf:/etc/nginx/conf.d/sa.conf.template:ro
- ./nginx/empty.conf:/etc/nginx/conf.d/default.conf:ro
- ./logs/nginx:/var/log/nginx/:rw
+ postgres:
+ build:
+ context: ./postgres/docker/
+ networks:
+ - dbnet
+ volumes:
+ - ./postgres/postgres.conf:/etc/postgresql/postgresql.conf:ro
+ - ./postgres/init.sh:/docker-entrypoint-initdb.d/init.sh:ro
+ - ./postgres/data/:/var/lib/postgresql/data/:rw
+ - ./postgres/passwd/:/tmp/passwd/:rw
simpleid:
build:
context: .
@@ -108,3 +118,8 @@
ipam:
config:
- subnet: 10.12.14.24/29
+ dbnet:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: 10.12.14.40/29