Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.61 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
54
55
56
57
58
59
60
61
62
63
# SPDX-FileCopyrightText: 2025 NOI Techpark <digital@noi.bz.it>
#
# SPDX-License-Identifier: CC0-1.0
services:
webapp:
build:
dockerfile: ./infrastructure/docker/webapp.dockerfile
context: .
target: build
depends_on:
postgres:
condition: service_healthy
ports:
- ${WEBAPP_SERVER_PORT}:8080
environment:
JDBC_URL: ${WEBAPP_JDBC_URL}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/health/ready"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
job:
build:
dockerfile: ./infrastructure/docker/job.dockerfile
context: .
target: dev
environment:
DATABASE_URL: ${JOB_DATABASE_URL}
KEYCLOAK_BASE_URL: ${JOB_KEYCLOAK_BASE_URL}
METADATA_BASE_URL: ${JOB_METADATA_BASE_URL}
DATASET_CONTENT_PAGE_LIMIT: ${JOB_DATASET_CONTENT_PAGE_LIMIT}
LOG_LEVEL: ${JOB_LOG_LEVEL}
KEYCLOAK_ACCOUNTS_JSON: /accounts.json
CRON_SCHEDULE: ""
depends_on:
# since the webapp does DB migrations
webapp:
condition: service_healthy
volumes:
- ./keycloak-accounts.json:/accounts.json:ro
postgres:
restart: unless-stopped
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
volumes:
# - ./database/database.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: