/
docker-compose.yml
84 lines (76 loc) · 2 KB
/
docker-compose.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.9'
name: valtionavustus
services:
va:
extends:
service: va-server
command: with-profile server-dev run -m oph.va.hakija.main
hostname: va
depends_on:
db:
condition: service_healthy
fakesmtp:
condition: service_started
maksatuspalvelu:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:8081/api/healthcheck"]
va-server:
build:
context: .
dockerfile: ./Dockerfile
args:
- REVISION
image: ${VA_SERVER_IMAGE-va-server:latest}
pull_policy: missing
volumes:
- /dev/urandom:/dev/random
environment:
JAVA_TOOL_OPTIONS: '-Duser.timezone="Europe/Helsinki"'
healthcheck:
interval: 10s
timeout: 5s
retries: 10
logging:
options:
mode: 'non-blocking'
db:
image: postgres:12.2
volumes:
- ./scripts/postgres-docker/init-db.sql:/docker-entrypoint-initdb.d/init.sql
hostname: va-postgres
command: ["postgres", "-c", "log_statement=all", "-c", "log_line_prefix='%m [%p] {%x} '"]
environment:
POSTGRES_USER: 'va'
POSTGRES_PASSWORD: 'va'
PGDATA: '/tmp/'
TZ: "Europe/Helsinki"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
logging:
options:
mode: 'non-blocking'
fakesmtp:
build:
context: .
dockerfile: ./Dockerfile.rcs-fakesmtp
hostname: fakesmtp
volumes:
- ./fakesmtp/mail:/var/mail
logging:
options:
mode: 'non-blocking'
maksatuspalvelu:
image: atmoz/sftp
hostname: maksatuspalvelu
volumes:
- ./maksatuspalvelu/initialize-maksatuspalvelu.sh:/etc/sftp.d/initialize-maksatuspalvelu.sh
- ./maksatuspalvelu/identity/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
- ./maksatuspalvelu/identity/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
command: demo:pass:1001:100
logging:
options:
mode: 'non-blocking'