Skip to content

Commit

Permalink
fix: change environment inside docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
swusjask committed Jun 2, 2024
1 parent eaef717 commit 6685278
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ services:
command: gunicorn ce_tour.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/web/staticfiles
environment:
- SECRET_KEY=${SECRET_KEY}
- SQL_ENGINE=${SQL_ENGINE}
- SQL_DATABASE=${SQL_DATABASE}
- SQL_USER=${SQL_USER}
- SQL_PASSWORD=${SQL_PASSWORD}
- SQL_HOST=${SQL_HOST}
- SQL_PORT=${SQL_PORT}
- DATABASE=${DATABASE}
expose:
- 8000
depends_on:
Expand All @@ -16,6 +25,10 @@ services:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
nginx:
image: nginx
restart: unless-stopped
Expand Down

0 comments on commit 6685278

Please sign in to comment.