54 lines
No EOL
1.2 KiB
YAML
54 lines
No EOL
1.2 KiB
YAML
version: '3'
|
|
services:
|
|
selfsigned:
|
|
build:
|
|
context: .
|
|
dockerfile: certs.Dockerfile
|
|
container_name: gencerts
|
|
volumes:
|
|
- ./certs:/certs
|
|
- ./certs.cnf:/certs/certs.cnf
|
|
- ./secrets:/certs/secrets
|
|
environment:
|
|
- SERVER_CN=seb-server-mariadb
|
|
- CLIENT_CN=seb-server-mariadb
|
|
|
|
mariadb:
|
|
image: "mariadb/server:10.3"
|
|
container_name: seb-server-mariadb
|
|
volumes:
|
|
- .:/etc/mysql/conf.d
|
|
- ./certs:/etc/mysql/certs
|
|
- seb-server-mariadb-data:/var/lib/mysql
|
|
env_file:
|
|
- secrets
|
|
ports:
|
|
- 3306:3306
|
|
networks:
|
|
- seb-server-network
|
|
depends_on:
|
|
- "selfsigned"
|
|
|
|
seb-server:
|
|
build:
|
|
context: .
|
|
dockerfile: sebserver.Dockerfile
|
|
args:
|
|
- GIT_TAG=
|
|
- SEBSERVER_VERSION=0.4.1-beta-SNAPSHOT
|
|
container_name: seb-server
|
|
volumes:
|
|
- .:/config
|
|
- ./certs:/certs
|
|
ports:
|
|
- 443:443
|
|
networks:
|
|
- seb-server-network
|
|
depends_on:
|
|
- "mariadb"
|
|
|
|
networks:
|
|
seb-server-network:
|
|
|
|
volumes:
|
|
seb-server-mariadb-data: |