|
|
@ -8,7 +8,7 @@ services: |
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres} |
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres} |
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} |
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} |
|
|
ports: |
|
|
ports: |
|
|
- "5432:5432" |
|
|
|
|
|
|
|
|
- "${POSTGRES_HOST_PORT:-5432}:5432" |
|
|
volumes: |
|
|
volumes: |
|
|
- postgres_data:/var/lib/postgresql/data |
|
|
- postgres_data:/var/lib/postgresql/data |
|
|
healthcheck: |
|
|
healthcheck: |
|
|
@ -22,7 +22,7 @@ services: |
|
|
container_name: divar_redis |
|
|
container_name: divar_redis |
|
|
restart: unless-stopped |
|
|
restart: unless-stopped |
|
|
ports: |
|
|
ports: |
|
|
- "6379:6379" |
|
|
|
|
|
|
|
|
- "${REDIS_HOST_PORT:-6379}:6379" |
|
|
healthcheck: |
|
|
healthcheck: |
|
|
test: [ "CMD", "redis-cli", "ping" ] |
|
|
test: [ "CMD", "redis-cli", "ping" ] |
|
|
interval: 5s |
|
|
interval: 5s |
|
|
@ -37,7 +37,7 @@ services: |
|
|
restart: unless-stopped |
|
|
restart: unless-stopped |
|
|
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 4 |
|
|
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 4 |
|
|
ports: |
|
|
ports: |
|
|
- "8000:8000" |
|
|
|
|
|
|
|
|
- "${BACKEND_HOST_PORT:-8000}:8000" |
|
|
environment: |
|
|
environment: |
|
|
- REDIS_URL=redis://redis:6379/0 |
|
|
- REDIS_URL=redis://redis:6379/0 |
|
|
- POSTGRES_HOST=db |
|
|
- POSTGRES_HOST=db |
|
|
@ -101,8 +101,7 @@ services: |
|
|
container_name: divar_frontend |
|
|
container_name: divar_frontend |
|
|
restart: unless-stopped |
|
|
restart: unless-stopped |
|
|
ports: |
|
|
ports: |
|
|
- "80:80" |
|
|
|
|
|
- "5173:80" |
|
|
|
|
|
|
|
|
- "${HTTP_PORT:-8080}:80" |
|
|
depends_on: |
|
|
depends_on: |
|
|
- backend |
|
|
- backend |
|
|
|
|
|
|
|
|
|