You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
549 B

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:
networks:
default:
name: eden-network
external: true