Skip to content

Commit

Permalink
Set up docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jan 23, 2022
1 parent c935ad7 commit 48f9e4e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "3"

volumes:
postgres:

services:
postgres:
image: postgis/postgis:13-3.1
environment:
- POSTGRES_PASSWORD=s3cret
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"

web:
build: .
image: comics:latest
depends_on:
- postgres
env_file:
- .env
environment:
- DATABASE_URL=psql://postgres:s3cret@postgres:5432/postgres
- PORT=8000
command: web
ports:
- "8000:8000"

0 comments on commit 48f9e4e

Please sign in to comment.