Skip to content

Commit

Permalink
Cleaned up Docker compose file (#39)
Browse files Browse the repository at this point in the history
* voorwiel aus der docker-compose.yml genommen und debug auf 0 gesetzt
* always restart containers
* removed ALLOWED_HOSTS list since it will be loaded from .env
* removed voorwiel from docker compose

Co-authored-by: Amar Bolkan <[email protected]>
Co-authored-by: Jonas Laacke <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2021
1 parent a20b35b commit 95c4aa2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: '3'
services:
db:
image: mdillon/postgis
restart: always
volumes:
- data:/var/lib/postgresql/data
environment:
Expand All @@ -18,8 +19,6 @@ services:
- .:/code
environment:
- SECRET_KEY=fooooo
- ALLOWED_HOSTS=0.0.0.0,localhost
- DEBUG=1
- DATABASE_URL=postgis://postgres:password@db:5432/cykel
- REDIS_URL=redis://redis:6379/0
depends_on:
Expand All @@ -29,14 +28,10 @@ services:

cykel:
<<: *default
restart: always
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"

voorwiel:
image: stadtulm/voorwiel
ports:
- "8080:80"

volumes:
data:

0 comments on commit 95c4aa2

Please sign in to comment.