-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
53 lines (48 loc) · 1.36 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
version: "3"
services:
db:
# restart: always
image: mariadb:10
command: --default-authentication-plugin=mysql_native_password
volumes:
- openxpkidb:/var/lib/mysql
- openxpkidbsocket:/var/run/mysqld/
- ./openxpki-config/contrib/sql/schema-mariadb.sql:/docker-entrypoint-initdb.d/schema-mariadb.sql
environment:
MYSQL_DATABASE: openxpki
MYSQL_USER: openxpki
MYSQL_PASSWORD: openxpki
MYSQL_ROOT_PASSWORD: topsecret
openxpki-server:
# restart: always
image: whiterabbitsecurity/openxpki3
command: /usr/bin/openxpkictl start --no-detach
volumes:
- ./openxpki-config:/etc/openxpki
- openxpkilog:/var/log/openxpki
- openxpkisocket:/var/openxpki/
- openxpkidbsocket:/var/run/mysqld/
# this will not work on all OS
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- db
openxpki-client:
# restart: always
image: whiterabbitsecurity/openxpki3
command: /usr/bin/start-apache
ports:
- "8080:80/tcp"
- "8443:443/tcp"
volumes:
- ./openxpki-config:/etc/openxpki
- openxpkilog:/var/log/openxpki
- openxpkisocket:/var/openxpki/
- openxpkidbsocket:/var/run/mysqld/
depends_on:
- openxpki-server
volumes:
openxpkidb:
openxpkisocket:
openxpkidbsocket:
openxpkilog: