2020-12-20 14:52:15 +01:00
|
|
|
---
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: mariadb.Dockerfile
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
2020-12-22 15:51:13 +01:00
|
|
|
environment:
|
|
|
|
MYSQL_CATS_DATABASE: cats
|
2020-12-20 14:52:15 +01:00
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
ports:
|
|
|
|
- "13306:3306"
|
|
|
|
healthcheck:
|
|
|
|
test: out=$$(mysqladmin ping -h localhost -P 3306 -u root -p$$MYSQL_ROOT_PASSWORD 2>&1); echo $$out | grep 'mysqld is alive' || { echo $$out ; exit 1 ; }
|
|
|
|
smtp:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: smtp.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- maildir:/home/catchall/Maildir
|
2020-12-22 08:49:18 +01:00
|
|
|
mail:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: mail.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- maildir:/home/catchall/Maildir
|
2020-12-22 14:19:31 +01:00
|
|
|
env_file:
|
|
|
|
- ./.env
|
2020-12-23 07:17:06 +01:00
|
|
|
webdb:
|
2020-12-20 14:52:15 +01:00
|
|
|
build:
|
|
|
|
context: .
|
2020-12-23 07:17:06 +01:00
|
|
|
dockerfile: webdb.Dockerfile
|
2020-12-21 18:44:20 +01:00
|
|
|
environment:
|
|
|
|
DEPLOYMENT_NAME: "CAcert.org Website (local development)"
|
2020-12-23 07:17:06 +01:00
|
|
|
MYSQL_WEBDB_HOSTNAME: db
|
|
|
|
MYSQL_WEBDB_DATABASE: cacert
|
2020-12-23 09:53:52 +01:00
|
|
|
CSR_DIRECTORY: /certs/csr
|
|
|
|
CRT_DIRECTORY: /certs/crt
|
2020-12-23 22:14:13 +01:00
|
|
|
CRL_DIRECTORY: /certs/crl
|
2020-12-23 07:17:06 +01:00
|
|
|
DEFAULT_HOSTNAME: www.cacert.localhost
|
|
|
|
SECURE_HOSTNAME: secure.cacert.localhost
|
|
|
|
TVERIFY_HOSTNAME: tverify.cacert.localhost
|
2020-12-21 18:44:20 +01:00
|
|
|
INSECURE_PORT: 8080
|
|
|
|
SECURE_PORT: 8443
|
|
|
|
RETURN_ADDRESS: "returns@cacert.localhost"
|
|
|
|
SMTP_HOST: smtp
|
2020-12-20 14:52:15 +01:00
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
- "8443:443"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- smtp
|
|
|
|
volumes:
|
|
|
|
- ./cacert-software:/www
|
2020-12-23 09:53:52 +01:00
|
|
|
- certstaging:/certs
|
2020-12-22 08:49:18 +01:00
|
|
|
mgr:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: mgr.Dockerfile
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
ports:
|
|
|
|
- "9443:443"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- mail
|
|
|
|
volumes:
|
2020-12-22 15:51:13 +01:00
|
|
|
- ./cacert-mgr:/var/www/mgr
|
|
|
|
cats:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: cats.Dockerfile
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
environment:
|
|
|
|
CATS_NORMAL_HOSTNAME: "cats.cacert.localhost:7443"
|
|
|
|
CATS_SECURE_HOSTNAME: "cats.cacert.localhost:7443"
|
|
|
|
MYSQL_CATS_DATABASE: cats
|
|
|
|
ports:
|
|
|
|
- "7443:443"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
volumes:
|
|
|
|
- ./cacert-cats:/var/www/cats
|
2020-12-23 09:53:52 +01:00
|
|
|
signer_client:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: signer_client.Dockerfile
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
environment:
|
|
|
|
MYSQL_WEBDB_HOSTNAME: db
|
|
|
|
MYSQL_WEBDB_DATABASE: cacert
|
|
|
|
CSR_DIRECTORY: /srv/certs/csr
|
|
|
|
CRT_DIRECTORY: /srv/certs/crt
|
2020-12-23 22:14:13 +01:00
|
|
|
CRL_DIRECTORY: /srv/certs/crl
|
2020-12-23 09:53:52 +01:00
|
|
|
volumes:
|
|
|
|
- certstaging:/srv/certs
|
|
|
|
- signersockets:/srv/sockets
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
signer:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: signer.Dockerfile
|
|
|
|
environment:
|
|
|
|
SIGNER_WORKDIR: /srv/ca/work
|
|
|
|
SIGNER_CA_CONFIG: /srv/caconfig
|
2020-12-23 22:14:13 +01:00
|
|
|
SIGNER_BASEDIR: /srv/ca
|
2020-12-23 09:53:52 +01:00
|
|
|
volumes:
|
|
|
|
- signersockets:/srv/sockets
|
|
|
|
- signerdata:/srv/ca
|
2020-12-20 14:52:15 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db: { }
|
2020-12-23 09:53:52 +01:00
|
|
|
maildir: { }
|
|
|
|
certstaging: { }
|
|
|
|
signersockets: { }
|
|
|
|
signerdata: { }
|