seb-server/docker/prod/standalone/selfsigned/docker-compose.yml
2019-09-05 12:53:11 +02:00

63 lines
No EOL
1.4 KiB
YAML

version: '3'
services:
selfsigned:
build:
context: .
dockerfile: certs.Dockerfile
container_name: gencerts
volumes:
- ./certs:/certs
env_file:
- ./config/secrets
mariadb:
image: "mariadb/server:10.3"
container_name: seb-server-mariadb
volumes:
- ./config:/etc/mysql/conf.d
- ./certs:/etc/mysql/certs
- seb-server-mariadb-data:/var/lib/mysql
env_file:
- ./config/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:/sebserver/config
- ./certs:/certs
env_file:
- ./config/secrets
environment:
- ADDITIONAL_DNS=dns:127.0.0.1,dns:seb-server
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: