-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.localhost.yml
More file actions
59 lines (56 loc) · 1.86 KB
/
Copy pathdocker-compose.localhost.yml
File metadata and controls
59 lines (56 loc) · 1.86 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
version: "3.8"
# Description: This service runs the soakp server using the specified
# image and container configuration. It serves as the main component
# for running the soakp server.
services:
server:
env_file: ".env"
depends_on:
- myca
# This service generates a self-signed SSL certificate using a
# user-specified CA. It provides a self-signed SSL certificate
# that can be used by the server service.
myca:
image: lehcode/ssl-myca:latest
container_name: myca
entrypoint: /init.sh
build:
context: docker/myca/
args:
# Specifies whether to enable debugging.
# Default is "yes"
debug: ${DEBUG:-no}
# The key length for the SSL certificate.
# Default is 4096
key_len: ${KEY_LEN:-4096}
# The validity period of the SSL certificate in days.
# Default is 365
days: ${CERT_DAYS:-365}
# The common name for the CA (Certificate Authority).
# Default is "CAuth"
ca_cn: ${MYCA_ORG_CN:-CAuth}
# The common name for the server certificate.
# This variable needs to be provided
server_cn: ${SERVER_HOST:?}
# The user ID to map on container user.
# Default is 1001
host_user_uid: ${HOST_USER_UID:-1001}
# The password for the private key of the SSL certificate.
# This variable needs to be provided
key_pass: ${MYCA_KEY_PASS:?}
# The GID of "docker" group of host machine
host_docker_gid: ${HOST_DOCKER_GID}
environment:
SSL_CERT_DIR: ${SSL_CERT_DIR:?}
volumes:
# The location of generated SSL certificates
- ./docker/myca/generate/cert:${SSL_CERT_DIR:?}
# The logs directory
- /usr/local/log/soakp:/var/log/soakp
tty: true
networks:
soakp_network:
ipam:
driver: default
config:
- subnet: 172.16.222.0/24