Skip to content

Commit

Permalink
Create prod and non-prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Svidunovich authored and Kirill Svidunovich committed Nov 7, 2023
1 parent b9c9a85 commit 390dd0f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
47 changes: 47 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: '3.8'

volumes:
hr_praktikum_database_volume:
hr_praktikum_static_volume:
hr_praktikum_media_volume:

services:

hr_praktikum_database:
image: postgres:15-alpine
volumes:
- hr_praktikum_database_volume:/var/lib/postgresql/data/
env_file:
- .env

hr_praktikum_redis:
image: redis:7.2.1-alpine

hr_praktikum_backend:
image: thesuncatcher222/hr_praktikum_backend:latest
env_file: .env
volumes:
- hr_praktikum_static_volume:/app/static
- hr_praktikum_media_volume:/app/media
depends_on:
- hr_praktikum_database
- hr_praktikum_redis

hr_praktikum_frontend:
image: thesuncatcher222/hr_praktikum_frontend:latest
volumes:
- hr_praktikum_static_volume:/app/build
env_file: .env
depends_on:
- hr_praktikum_backend

hr_praktikum_gateway:
image: thesuncatcher222/hr_praktikum_gateway:latest
ports:
- "8000:8000"
volumes:
- hr_praktikum_static_volume:/var/html/static/
- hr_praktikum_media_volume:/var/html/media/
depends_on:
- hr_praktikum_backend
- hr_praktikum_frontend
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
image: redis:7.2.1-alpine

hr_praktikum_backend:
image: thesuncatcher222/hr_praktikum_backend:latest
build: ./hakaton/
env_file: .env
volumes:
- hr_praktikum_static_volume:/app/static
Expand All @@ -28,15 +28,15 @@ services:
- hr_praktikum_redis

hr_praktikum_frontend:
image: thesuncatcher222/hr_praktikum_frontend:latest
build: ../frontend/
volumes:
- hr_praktikum_static_volume:/app/build
env_file: .env
depends_on:
- hr_praktikum_backend

hr_praktikum_gateway:
image: thesuncatcher222/hr_praktikum_gateway:latest
build: ./gateway/
ports:
- "8000:8000"
volumes:
Expand Down

0 comments on commit 390dd0f

Please sign in to comment.