-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (111 loc) · 3.27 KB
/
docker-compose.yml
File metadata and controls
117 lines (111 loc) · 3.27 KB
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
x-base-image: &base-image
image: whiterabbitsecurity/openxpki3:3.32.8
services:
db:
# restart: always
container_name: OpenXPKI_Database
image: mariadb:11.4
command: --default-authentication-plugin=mysql_native_password
user: mysql:mysql
volumes:
- openxpkidb:/var/lib/mysql
- openxpkidbsocket:/var/run/mysqld/
- ./openxpki-config/contrib/sql/schema-mariadb.sql:/docker-entrypoint-initdb.d/schema-mariadb.sql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 3s
retries: 5
environment:
MYSQL_DATABASE: openxpki
MYSQL_USER: openxpki
MYSQL_PASSWORD: openxpki
MYSQL_ROOT_PASSWORD: topsecret
server:
<< : *base-image
container_name: OpenXPKI_Server
command: /usr/bin/openxpkictl start server --nd
user: openxpki:openxpki
group_add:
- openxpkiclient
tmpfs:
- /tmp
volumes:
- ./openxpki-config:/etc/openxpki
- ./config/client.key:/home/pkiadm/.oxi/client.key
- openxpkilog:/var/log/openxpki
- openxpkisocket:/run/openxpkid
- openxpkidbsocket:/var/run/mysqld/
- openxpkidownload:/var/www/download
# this will not work on all OS
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
healthcheck:
test: /usr/bin/openxpkictl status server
interval: 5s
timeout: 3s
retries: 5
depends_on:
db:
condition: service_healthy
client:
<< : *base-image
container_name: OpenXPKI_Client
image: whiterabbitsecurity/openxpki3
command: /usr/bin/openxpkictl start client --nd
user: openxpkiclient:openxpkiclient
group_add:
- www-data
tmpfs:
- /tmp
volumes:
- ./openxpki-config/client.d:/etc/openxpki/client.d
- openxpkilogui:/var/log/openxpki-client
- openxpkisocket:/run/openxpkid
- openxpkiclientsocket:/run/openxpki-clientd
- openxpkidbsocket:/var/run/mysqld/
healthcheck:
test: /usr/bin/openxpkictl status client
interval: 5s
timeout: 3s
retries: 5
depends_on:
server:
condition: service_healthy
web: &web-apache
<< : *base-image
container_name: OpenXPKI_WebUI
command: /usr/bin/start-webserver apache
ports:
- "8080:80/tcp"
- "8443:443/tcp"
volumes:
- ./openxpki-config/contrib/apache2-openxpki-site.conf:/etc/apache2/sites-enabled/openxpki.conf
- ./openxpki-config/tls/:/etc/openxpki/tls/
- openxpkiclientsocket:/run/openxpki-clientd
- openxpkidownload:/var/www/download:ro
healthcheck:
test: wget -q http://localhost/healthcheck/ping
interval: 5s
timeout: 3s
retries: 5
depends_on:
client:
condition: service_healthy
web-nginx:
<< : *web-apache
container_name: OpenXPKI_WebUI_nginx
command: /usr/bin/start-webserver nginx
volumes:
- ./openxpki-config/contrib/nginx-openxpki-site:/etc/nginx/sites-enabled/openxpki
- ./openxpki-config/tls/:/etc/openxpki/tls/
- openxpkiclientsocket:/run/openxpki-clientd
- openxpkidownload:/var/www/download:ro
volumes:
openxpkidb:
openxpkisocket:
openxpkiclientsocket:
openxpkidbsocket:
openxpkilog:
openxpkilogui:
openxpkidownload: