-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
97 lines (96 loc) · 2.57 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
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
services:
test:
build:
dockerfile: Dockerfile
target: test
depends_on:
- sertifikatsok
volumes:
- .:/opt/sertifikatsok/repo
working_dir: /opt/sertifikatsok/repo/api
command: bash -c "trap 'exit 0' SIGTERM; while true; do sleep 2; done"
startupcheck:
build:
dockerfile: Dockerfile
target: test
depends_on:
- ldap_server_test
- ldap_server_prod
volumes:
- ./misc:/opt/sertifikatsok/misc
- ./api:/opt/sertifikatsok/api
command: "bash /opt/sertifikatsok/misc/check_if_testserver_started_and_delete_crl_cache.sh"
sertifikatsok:
build:
dockerfile: Dockerfile
args:
SERTIFIKATSOK_VERSION: dev
ports:
- 127.0.0.1:7001:7001
depends_on:
startupcheck:
condition: service_completed_successfully
volumes:
- ./testserver/cloned_certs:/opt/sertifikatsok/api/certs
command: "--host 0.0.0.0 --port 7001"
ldap_server_test:
build:
dockerfile: Dockerfile
target: test
environment:
- ENVIRONMENT=test
- RUNNING_IN_DOCKER=true
working_dir: /opt/sertifikatsok/testserver
command: python3 -m testserver
ports:
- 127.0.0.1:3890:389
volumes:
- ./api:/opt/sertifikatsok/api
- ./testserver:/opt/sertifikatsok/testserver
networks:
default:
aliases:
- ldap.test4.buypass.no
- crl.test4.buypass.no
- ocsp.test4.buypass.no
- crl.test4.buypassca.com
- ocspbs.test4.buypassca.com
- ocspps.test4.buypassca.com
- ldap.test.commfides.com
- crl1.test.commfides.com
- crl2.test.commfides.com
- crl.test.commfides.com
- ocsp1.test.commfides.com
- ocsp.test.commfides.com
ldap_server_prod:
build:
dockerfile: Dockerfile
target: test
environment:
- ENVIRONMENT=prod
- RUNNING_IN_DOCKER=true
working_dir: /opt/sertifikatsok/testserver
command: python3 -m testserver
ports:
- 127.0.0.1:3891:389
volumes:
- ./api:/opt/sertifikatsok/api
- ./testserver:/opt/sertifikatsok/testserver
networks:
default:
aliases:
- ldap.buypass.no
- crl.buypass.no
- ocsp.buypass.no
- crl.buypassca.com
- ocspbs.buypassca.com
- cspps.buypassca.com
- ldap.commfides.com
- crl1.commfides.com
- crl2.commfides.com
- crl.commfides.com
- ocsp1.commfides.com
- ocsp.commfides.com
networks:
default:
name: sertifikatsok