source: docker-compose.yml@ b348db4

main
Last change on this file since b348db4 was 5750945, checked in by Tome <gjorgievtome@…>, 7 months ago

Dockerize app

  • Property mode set to 100644
File size: 583 bytes
Line 
1services:
2 app:
3 build: .
4 ports:
5 - "8080:8080"
6 env_file:
7 - .env
8 depends_on:
9 db:
10 condition: service_healthy
11 restart: unless-stopped
12
13 db:
14 image: postgres:16
15 container_name: postgres
16 environment:
17 POSTGRES_DB: postgres
18 POSTGRES_USER: app
19 POSTGRES_PASSWORD: app
20 ports:
21 - "5432:5432"
22 volumes:
23 - postgres_data:/var/lib/postgresql/data
24 healthcheck:
25 test: ["CMD-SHELL", "pg_isready -U app -d postgres"]
26 interval: 5s
27 timeout: 5s
28 retries: 5
29
30volumes:
31 postgres_data:
Note: See TracBrowser for help on using the repository browser.