docker: prod configuration fix

This commit is contained in:
ZhymabekRoman 2024-09-21 15:54:19 +05:00
parent 7a7b882548
commit 9adb380a83
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,7 @@ services:
retries: 3
restart: always
stop_grace_period: 2m
mem_limit: 2g
mem_limit: 5g
postgres:
image: postgres:16.3-alpine3.20
@ -26,7 +26,7 @@ services:
networks:
- freedium_net
volumes:
- ./postgres:/var/lib/postgresql/data
- ../postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres

View file

@ -28,6 +28,7 @@ services:
freedium_web:
container_name: freedium_web
env_file: ../.env
build:
context: ../
dockerfile: Dockerfile