Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker compose file for installing core php based apps - Selfoss in this case
# 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
You can’t perform that action at this time.