-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
91 lines (83 loc) · 3.02 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
85
86
87
88
89
90
91
version: '3.9'
name: valtionavustus
services:
va:
extends:
service: va-server
command: with-profile server-local run -m oph.va.hakija.main
hostname: va
depends_on:
db:
condition: service_healthy
fakesmtp:
condition: service_started
maksatuspalvelu:
condition: service_started
pagerduty:
condition: service_started
environment:
JAVA_TOOL_OPTIONS: '-Duser.timezone="Europe/Helsinki"'
PAGERDUTY_API_ENDPOINT: 'http://pagerduty:8080/v2/enqueue'
PAGERDUTY_ROUTING_KEY: '_not_used_on_local_dev_'
PAYMENT_SERVICE_HOST: 'maksatuspalvelu'
PAYMENT_SERVICE_HOST_KEY: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDI3YbtcvUMQeejYZC/OEgKORe6gcYFqW+IblPkE07PrjGjHkrMzHbWYAe2BQOlaZ1leGE0SSceYYqSVbLmUSJ7bMv4QH3T+MSl2NtjH3KO3a6kX9nebc6xo3CVfm6CajdYol1/toBSXQqSwq7gcb4N1wL1Gr7569T5zXT3ecLRx/RgJTzDG1B1kWwQTDl0L8UHZuLkmuY6hnrDbfmMxYylMyqgDBUcLE9OXbO9KLQQMsHZz9X338p5jT7ZlxyfGPkNZXl7t7WPB82SWTiqL8bNOgCKWb0ktbhPIwxS4wNC0vcauT3bV/4tLG+Q9/L5GjMI4sSW3Kx9UxafJLzfxa3qtBNgTfTiwsdeDOlqHx0cpCwnA9jT/YJvt6sn+NUmPGscrb/9IgGiNO7t7MagVfhxBujimzKMojYRUsRaLgv5bKxsdBlr3OgNWzfQta2o1Ztc46bpzqd4d9WR+CHYCI+qznjU/KacFGLTwHj9BwpYXeuFzl1AAr8lX5mNFckuDbMP1PDxVg/ZEckk+qP+AOYuUyLPHoxu+9ow7ZxC4hXF1ht3CQllopxrlqHK2eSJJqwufqZEQYRXqzXP79+W0rZVHEQPTzAhbm8LDThwEcq7DoRWRE+kPxQM+Sq6l/PdCRjORITEI7iGl7bM2J1D/mB157ngWI7YNsJC9JnkzU8pFw=='
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:8081/api/healthcheck"]
va-server:
build:
context: .
dockerfile: ./Dockerfile.va-app
args:
- REVISION
image: ${VA_SERVER_IMAGE-va-server:latest}
pull_policy: missing
volumes:
- /dev/urandom:/dev/random
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'
pagerduty:
image: mendhak/http-https-echo:33
hostname: pagerduty
environment:
ECHO_BACK_TO_CLIENT: false
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'