1
0
api/compose.yml
2024-02-26 19:29:51 +09:00

29 lines
518 B
YAML

services:
api:
ports:
- 8080:8080
build:
context: .
restart: always
env_file:
- .env
volumes:
- ./app/data:/app/data
database:
#ports:
#- 55432:5432
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: api
POSTGRES_USER: api
POSTGRES_DB: api
volumes:
- ./postgres_database:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5