add nginx service

This commit is contained in:
2025-05-07 13:06:42 +03:30
parent ed6dcd0f29
commit 372ca655a2
3 changed files with 51 additions and 1 deletions

View File

@@ -1,4 +1,16 @@
services:
nginx:
image: nginx:1.27.5-alpine3.21
container_name: nginx
restart: always
tty: true
ports:
- "8888:80"
volumes:
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d
- ${NGINX_CONFIG_PATH}/logs:/var/log/nginx/
backend_db:
image: postgres:17-alpine3.21
container_name: backend_db
@@ -71,6 +83,7 @@ services:
- NODE_ENV=production
- DB_HOST=notification_db
- DB_PORT=5432
- SERVICE_URL=${NOTIFICATION_SERVICE_URL}
- DB_USERNAME=${NOTIFICATION_SERVER_USER}
- DB_PASSWORD=${NOTIFICATION_SERVER_PASSWORD}
- DB_DATABASE=${NOTIFICATION_SERVER_DB}