Skip to content

Commit

Permalink
Fix backend and gateway issues3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Bodreev committed Feb 10, 2025
1 parent 07721a8 commit a8f2c77
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
version: '3.8'

services:
postgres:
image: postgres:13
container_name: postgres
restart: always
env_file: .env
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- kittygram

backend:
image: edik1511/kittygram_backend:latest
container_name: backend
restart: always
depends_on:
- postgres
env_file: .env
volumes:
- static:/app/static
- media:/app/media
networks:
- kittygram

frontend:
image: edik1511/kittygram_frontend:latest
container_name: frontend
restart: always
depends_on:
- backend
networks:
- kittygram

gateway:
image: edik1511/kittygram_gateway:latest
container_name: gateway
restart: always
depends_on:
- backend
- frontend
ports:
- "8080:80"
volumes:
- static:/app/static
- media:/app/media
networks:
- kittygram

volumes:
pg_data:
static:
media:

networks:
kittygram:
Empty file added kittygram_workflow.yml
Empty file.

0 comments on commit a8f2c77

Please sign in to comment.