seb-server/docker/prod/standalone/selfsigned/docker-compose.yml

64 lines
No EOL
1.5 KiB
YAML

version: '3'
services:
selfsigned:
build:
context: .
dockerfile: certs.Dockerfile
container_name: gencerts
volumes:
- seb-server-certs:/certs
- seb-server-config:/config
- ./config:/host/config
mariadb:
image: "mariadb/server:10.3"
container_name: seb-server-mariadb
volumes:
- seb-server-config:/etc/mysql/conf.d
- seb-server-certs:/etc/mysql/certs
- seb-server-mariadb-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD_FILE=/etc/mysql/conf.d/secret
ports:
- 3306:3306
networks:
- seb-server-network
depends_on:
- "selfsigned"
seb-server:
build:
context: .
dockerfile: sebserver.Dockerfile
args:
- GIT_TAG=
- SEBSERVER_VERSION=0.4.2-beta-SNAPSHOT
container_name: seb-server
volumes:
- seb-server-config:/sebserver/config
- seb-server-certs:/certs
environment:
- ADDITIONAL_DNS=dns:127.0.0.1,dns:seb-server
- DEBUG_MODE=false
ports:
- 443:443
- 80:8080
- 9090:9090
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
networks:
- seb-server-network
depends_on:
- "mariadb"
networks:
seb-server-network:
volumes:
seb-server-mariadb-data:
seb-server-certs:
seb-server-config: