Initial commit
This commit is contained in:
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: postgres-survey
|
||||
environment:
|
||||
POSTGRES_USER: servey
|
||||
POSTGRES_PASSWORD: utOgbZ09servey
|
||||
POSTGRES_DB: survey
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
restart: always
|
||||
|
||||
flask-app:
|
||||
build: .
|
||||
ports:
|
||||
- "3333:5000"
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./survey.db:/app/survey.db
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- POSTGRES_USER=servey
|
||||
- POSTGRES_PASSWORD=utOgbZ09servey
|
||||
- POSTGRES_DB=survey
|
||||
- POSTGRES_HOST=db
|
||||
depends_on:
|
||||
- db
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
Reference in New Issue
Block a user