Created
May 10, 2020 08:43
-
-
Save sriperinkulam/bf31682e6d9805ac29d6e4ff02bacb28 to your computer and use it in GitHub Desktop.
Docker compose file for installing core php based apps - Selfoss in this case
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 | |
# After container setup: | |
# -> Download package from [selfoss](https://selfoss.aditu.de/) and copy over to the app folder | |
# -> follows install steps mentioned on the installation wiki | |
version: '3.7' | |
services: | |
mariadb: | |
image: mariadb:10.3.14 | |
volumes: | |
- ${VOLUME_PATH}selfossmariadb:/var/lib/mysql:cached | |
environment: | |
- MYSQL_ROOT_PASSWORD=strongrootpassword | |
- MYSQL_DATABASE=selfoss | |
- MYSQL_USER=selfoss | |
- MYSQL_PASSWORD=passwordforselfoss | |
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:-selfoss.localhost} | |
networks: | |
- internal | |
- traefik | |
volumes: | |
selfossmariadb: | |
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