mfss-positioning/docker-compose.yml
2025-05-05 10:17:44 +07:00

54 lines
1.0 KiB
YAML

services:
web:
build: ./positioning
image: positioning
command: >
sh -c "
python manage.py migrate --noinput &&
gunicorn --workers=4 --bind 0.0.0.0:8000 project.wsgi:application
"
expose:
- "8000"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
restart: always
postgres:
image: postgis/postgis:13-3.5
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env
expose:
- "5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 10s
timeout: 60s
retries: 3
start_period: 10s
restart: always
nginx:
build:
context: ./nginx/prod
additional_contexts:
app_static: ./static
args:
- UE_STATIC_REPO=${UE_STATIC_REPO}
ports:
- "8101:80"
depends_on:
web:
condition: service_started
env_file:
- .env
restart: always
volumes:
postgres_data:
redis_data: