-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (45 loc) · 1.15 KB
/
docker-compose.yaml
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
version: '3'
name: oph-ludos
services:
ludos:
extends:
service: ludos-server
environment:
- SPRING_PROFILES_ACTIVE
- DB_URL
- LUDOS_PALVELUKAYTTAJA_USERNAME
- LUDOS_PALVELUKAYTTAJA_PASSWORD
- GITHUB_TOKEN
container_name: ludos-server
ludos-server:
build:
secrets:
- github_token
image: ${LUDOS_TAG}
pull_policy: missing
ports:
- '127.0.0.1:8080:8080'
healthcheck:
test: [ "CMD-SHELL", "curl http://localhost:8080/api/health-check || exit 1" ]
depends_on:
ludos-db:
condition: service_healthy
ludos-db:
image: 'postgres:15.2'
environment:
- 'POSTGRES_USER=oph'
- 'POSTGRES_PASSWORD=oph'
- 'POSTGRES_DB=ludos'
- 'TZ=Europe/Helsinki'
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5
ports:
- '127.0.0.1:5432:5432'
secrets:
# For downloading packages from Github Packages Maven registry
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry
github_token:
environment: GITHUB_TOKEN