mirror of
https://github.com/zoriya/vex.git
synced 2025-12-06 07:06:09 +00:00
26 lines
457 B
YAML
26 lines
457 B
YAML
services:
|
|
api:
|
|
build: ./api
|
|
restart: on-failure
|
|
env_file:
|
|
- ./.env
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
restart: on-failure
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
db:
|