Last active
April 27, 2020 23:40
-
-
Save sriperinkulam/9ea9b57a052629ed5b75071c2bafdb00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumptions: | |
# Traefik container is already up and running along with the corresponding network | |
# See https://srikanthperinkulam.com/2020/04/19/self-hosting-jitsi-video-conferencing/ for more details | |
version: '3.7' | |
services: | |
mariadb: | |
image: mariadb:10.3.14 | |
volumes: | |
- ${VOLUME_PATH}knownmariadb:/var/lib/mysql:cached | |
environment: | |
- MYSQL_ROOT_PASSWORD=setasuperawes0mesecretr00tpassw0rdhere | |
- MYSQL_DATABASE=known | |
- MYSQL_USER=known | |
- MYSQL_PASSWORD=setan0therpassw0rdf0rdf0rthekn0wnuserhere | |
networks: | |
- internal | |
app: | |
image: sriperinkulam/php-7.4.3-apache-buster-plus:latest | |
volumes: | |
- ./app/:/var/www/html/ | |
deploy: | |
labels: | |
- traefik.port=80 | |
- traefik.enable=true | |
- traefik.frontend.rule=Host:${DOMAIN:-known.localhost} | |
networks: | |
- internal | |
- traefik | |
volumes: | |
knownmariadb: | |
networks: | |
internal: | |
driver: overlay | |
attachable: true | |
traefik: | |
external: true | |
name: traefik-net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment