-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
database:
image: postgres:16.1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data/postgres
POSTGRES_DB: measdb
volumes:
- postgres:/data/postgres
ports:
- 5432:5432
restart: unless-stopped
networks:
- app-network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
backend:
image: lukacetina/devops-backend
restart: unless-stopped
ports:
- 8280:8280
environment:
- QUARKUS_DATASOURCE_REACTIVE_URL=vertx-reactive:postgresql://database:5432/measdb
- QUARKUS_DATASOURCE_USERNAME=postgres
- QUARKUS_DATASOURCE_PASSWORD=postgres
depends_on:
database:
condition: service_healthy
networks:
- app-network
frontend:
image: lukacetina/devops-frontend
restart: unless-stopped
ports:
- 3000:80
depends_on:
- backend
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgres: