Add 'docker-compose.yml'
This commit is contained in:
parent
9a40b0b4f9
commit
31d1077952
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- SECRET_KEY=mysecretkey
|
||||
- DATABASE_URL=postgresql://user:password@db:5432/dbname
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: "postgres:13"
|
||||
environment:
|
||||
- POSTGRES_USER=user
|
||||
- POSTGRES_PASSWORD=password
|
||||
- POSTGRES_DB=dbname
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql
|
||||
|
||||
volumes:
|
||||
db-data:
|
Loading…
Reference in New Issue
Block a user