docker compose yaml file

This commit is contained in:
array-in-a-matrix 2024-08-01 22:30:20 -04:00
parent 8a8bf95bbf
commit 423ba71e78

30
docker-compose.yml Normal file
View file

@ -0,0 +1,30 @@
services:
glimpse:
# build: .
image: glimpse-server:latest
restart: always
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
restart: always
user: postgres
# ports:
# - 5432:5432
volumes:
- psql-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "postgresql"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
volumes:
psql-data: {}