source: backend/docker-compose.yml

main
Last change on this file was 700e2f9, checked in by 186079 <matej.milevski@…>, 5 days ago

Init

  • Property mode set to 100644
File size: 600 bytes
RevLine 
[700e2f9]1services:
2 postgres:
3 image: postgres:18-alpine
4 container_name: icare_db-postgres
5 restart: unless-stopped
6 environment:
7 POSTGRES_USER: ${POSTGRES_USER:-icare_user}
8 POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-icare_password}
9 POSTGRES_DB: ${POSTGRES_DB:-icare_db}
10 ports:
11 - "54320:5432"
12 volumes:
13 - postgres_data:/var/lib/postgresql/data
14 healthcheck:
15 test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-icare_user} -d ${POSTGRES_DB:-icare_db}"]
16 interval: 10s
17 timeout: 5s
18 retries: 5
19
20volumes:
21 postgres_data:
22 driver: local
Note: See TracBrowser for help on using the repository browser.