Skip to content

Instantly share code, notes, and snippets.

@ash-m
Last active March 31, 2018 23:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ash-m/279d1a20bdff0fbacdb1f3717b845cc3 to your computer and use it in GitHub Desktop.
Save ash-m/279d1a20bdff0fbacdb1f3717b845cc3 to your computer and use it in GitHub Desktop.
version: '3'
services:
wiki:
image: mediawiki
container_name: wiki
ports:
- 8080:80
volumes:
- uploads:/path/to/uploads
database:
image: mysql
container_name: mysql_db
environment:
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: yes
volumes:
dbdata:/var/lib/mysql
volumes:
uploads:
dbdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment