add section admin permission
This commit is contained in:
+23
-3
@@ -1,6 +1,21 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:17
|
||||
container_name: admin-db
|
||||
environment:
|
||||
POSTGRES_DB: admin_db
|
||||
POSTGRES_USER: admin
|
||||
POSTGRES_PASSWORD: adminDbApp
|
||||
ports:
|
||||
- "5454:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- app-network
|
||||
restart: unless-stopped
|
||||
|
||||
admin:
|
||||
build: .
|
||||
container_name: admin-backend
|
||||
@@ -9,15 +24,20 @@ services:
|
||||
environment:
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
POSTGRES_HOST: db
|
||||
POSTGRES_PORT: 5454
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_DB: admin_db
|
||||
POSTGRES_USER: admin
|
||||
POSTGRES_PASSWORD: adminDbApp
|
||||
SERVER_PORT: ${SERVER_PORT:-8082}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- app-network
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user