majorly overhauled the design to now use docker-compose and postgres
This commit is contained in:
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:17
|
||||
restart: always
|
||||
env_file: ./app/.env.db
|
||||
ports:
|
||||
- "127.0.0.1:5433:5432"
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
tutortool:
|
||||
build:
|
||||
context: ./app
|
||||
dockerfile: Dockerfile
|
||||
env_file: ./app/.env.tutortool
|
||||
ports:
|
||||
- "127.0.0.1:5000:5000"
|
||||
volumes:
|
||||
- ./data/slides:/src/data/slides
|
||||
- ./data/exports:/src/data/exports
|
||||
- ./logs:/src/logs
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: on-failure
|
||||
Reference in New Issue
Block a user