transition to postgres
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
version: '3'
|
||||
services:
|
||||
eveal:
|
||||
image: eveal:latest
|
||||
image: mabras:local
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
@@ -11,13 +11,12 @@ services:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- ./eveal:/app/eveal
|
||||
- ./eveal.db:/app/eveal.db
|
||||
command: ["uvicorn", "eveal.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
db:
|
||||
condition: service_healthy
|
||||
# elasticsearch:
|
||||
# condition: service_healthy
|
||||
|
||||
@@ -29,22 +28,21 @@ services:
|
||||
test: redis-cli ping
|
||||
interval: 3s
|
||||
|
||||
# db:
|
||||
# image: postgres:13-alpine
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
# volumes:
|
||||
# - ./dump_sde.sql:/docker-entrypoint-initdb.d/init_sde.sql
|
||||
# - mabras_dbdata:/var/lib/postgresql/data
|
||||
# environment:
|
||||
# - POSTGRES_PASSWORD
|
||||
# - POSTGRES_USER
|
||||
# - POSTGRES_DB
|
||||
# healthcheck:
|
||||
# test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
|
||||
# interval: 10s
|
||||
# timeout: 3s
|
||||
# retries: 3
|
||||
db:
|
||||
image: postgres:13-alpine
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- mabras_dbdata:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_DB
|
||||
healthcheck:
|
||||
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
# elasticsearch:
|
||||
# image: elasticsearch:latest
|
||||
@@ -60,3 +58,6 @@ services:
|
||||
# interval: 10s
|
||||
# timeout: 3s
|
||||
# retries: 3
|
||||
|
||||
volumes:
|
||||
mabras_dbdata:
|
||||
|
||||
Reference in New Issue
Block a user