Ok ...
Code:
version: '2.3'
services:
mariadb:
image: mariadb:latest
restart: always
container_name: docker_mariadb
networks:
relution-network:
aliases:
- mariadb-docker
environment:
- MYSQL_DATABASE=relution
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MYSQL_USER=relution
- MYSQL_PASSWORD=${MARIADB_USER_PASSWORD}
expose:
- '3306'
volumes:
- 'mariadb:/var/lib/mysql'
- './relution.cnf:/etc/mysql/conf.d/relution.cnf'
relution:
image: relution/relution:latest
restart: always
container_name: docker_relution
networks:
relution-network:
aliases:
- relution-docker
depends_on:
- mariadb
links:
- mariadb
environment:
- TZ=UTC
- DATABASE_TYPE=mysql
- DATABASE_URL=jdbc:mariadb://mariadb-docker/relution?useServerPrepStmts=true
- DATABASE_USER=relution
- DATABASE_PWD=${MARIADB_USER_PASSWORD}
- HOSTNAME=${EXTERNAL_URL}
- ORGA_ADMIN_EMAIL=${YOUR_EMAIL_ADDRESS}
- ORGA_REPLYTOMAIL=${YOUR_EMAIL_ADDRESS}
- SMTP_HOST=${SMTP_HOSTNAME}
expose:
- '8080'
nginx:
image: nginx:stable
restart: always
container_name: docker_nginx
networks:
relution-network:
aliases:
- nginx-docker
depends_on:
- relution
links:
- relution
environment:
- NGINX_HOST=${EXTERNAL_HOSTNAME}
ports:
- "80:80"
# - "443:443"
volumes:
- './relution-nginx.conf:/etc/nginx/conf.d/relution-nginx.conf'
- './server.pem:/etc/nginx/server.pem:/usr/syno/etc/certificate/ReverseProxy/b1de3890-8b61-44e4-a0b4-56cae1f790c5/RSA-cert.pem'
- './server.key:/etc/nginx/server.key:/usr/syno/etc/certificate/ReverseProxy/b1de3890-8b61-44e4-a0b4-56cae1f790c5/RSA-privkey.pem'
volumes:
mariadb:
networks:
relution-network: