mirror of
https://github.com/spliit-app/spliit.git
synced 2025-12-06 01:19:29 +01:00
34 lines
583 B
YAML
34 lines
583 B
YAML
services:
|
|
app:
|
|
build: .
|
|
image: spliit:latest
|
|
ports:
|
|
- 3000:3000
|
|
env_file:
|
|
- container.env
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
- spliit_network
|
|
|
|
db:
|
|
image: postgres:latest
|
|
expose:
|
|
- 5432
|
|
env_file:
|
|
- container.env
|
|
volumes:
|
|
- ./postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- spliit_network
|
|
|
|
networks:
|
|
spliit_network:
|
|
driver: bridge
|