fix: configuration docker-compose.yml
This commit is contained in:
@@ -24,13 +24,9 @@ services:
|
||||
volumes:
|
||||
- ./docker/postgres/data:/var/lib/postgres/data
|
||||
environment:
|
||||
- POSTGRES_DB_FILE=/run/secrets/app_db_name
|
||||
- POSTGRES_USER_FILE=/run/secrets/app_db_user
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/app_db_password
|
||||
secrets:
|
||||
- app_db_name
|
||||
- app_db_user
|
||||
- app_db_password
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
@@ -41,8 +37,7 @@ services:
|
||||
image: nginx:stable-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "81:80"
|
||||
- "5173:80"
|
||||
- "85:80"
|
||||
volumes:
|
||||
- ./src:/var/www/html
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
@@ -54,10 +49,8 @@ services:
|
||||
image: dpage/pgadmin4
|
||||
container_name: aselole-pgAdmin
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=agung@gmail.com
|
||||
- PGADMIN_DEFAULT_PASSWORD_FILE=/run/secrets/app_pgadmin_password
|
||||
secrets:
|
||||
- app_pgadmin_password
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
|
||||
ports:
|
||||
- "5050:80"
|
||||
depends_on:
|
||||
@@ -76,13 +69,3 @@ services:
|
||||
- postgres
|
||||
networks:
|
||||
- aselole
|
||||
|
||||
secrets:
|
||||
app_db_name:
|
||||
external: true
|
||||
app_db_user:
|
||||
external: true
|
||||
app_db_password:
|
||||
external: true
|
||||
app_pgadmin_password:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user