/
docker-compose-test.yml
117 lines (110 loc) · 2.83 KB
/
docker-compose-test.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3.9'
services:
test-runner:
build:
context: .
dockerfile: Dockerfile.playwright-test-runner
container_name: va-playwright-tests
depends_on:
va:
condition: service_healthy
volumes:
- ./playwright-results:/playwright-results
environment:
HEADLESS: 'true'
VIRKAILIJA_HOSTNAME: va
HAKIJA_HOSTNAME: va
PLAYWRIGHT_WORKERS: "${PLAYWRIGHT_WORKERS:-5}"
PLAYWRIGHT_RETRIES: 1
PLAYWRIGHT_SHARD: "${PLAYWRIGHT_SHARD-}"
PLAYWRIGHT_SHARDS_AMOUNT: "${PLAYWRIGHT_SHARDS_AMOUNT-}"
TZ: 'Europe/Helsinki'
logging:
options:
mode: 'non-blocking'
va:
build:
context: .
dockerfile: ./Dockerfile.hakija
container_name: va
hostname: va
environment:
JAVA_TOOL_OPTIONS: '-Duser.timezone="Europe/Helsinki"'
volumes:
- /dev/urandom:/dev/random
ports:
- '8080:8080'
- '8081:8081'
depends_on:
db:
condition: service_healthy
fakesmtp:
condition: service_started
maksatuspalvelu:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:8081/api/healthcheck"]
interval: 10s
timeout: 5s
retries: 5
logging:
options:
mode: 'non-blocking'
db:
image: postgres:12.2
volumes:
- ./scripts/postgres-docker/init-db.sql:/docker-entrypoint-initdb.d/init.sql
container_name: va-postgres
hostname: va-postgres
ports:
- '42042:5432'
command: ["postgres", "-c", "log_statement=all"]
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'
db_restore-backup:
extends: db
volumes:
- ./init-db-restore.sql:/docker-entrypoint-initdb.d/init.sql
- va-postgres-pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: 'va'
POSTGRES_PASSWORD: 'va'
fakesmtp:
build:
context: .
dockerfile: ./Dockerfile.rcs-fakesmtp
container_name: rcs-fakesmtp
hostname: fakesmtp
volumes:
- ./fakesmtp/mail:/var/mail
ports:
- '42069:25'
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
ports:
- '42022:22'
command: demo:pass:1001:100
logging:
options:
mode: 'non-blocking'
volumes:
va-postgres-pgdata: