Skip to content

Instantly share code, notes, and snippets.

@dnburgess
Last active August 7, 2020 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnburgess/18b2b90ba73aedbb434e521388a1390a to your computer and use it in GitHub Desktop.
Save dnburgess/18b2b90ba73aedbb434e521388a1390a to your computer and use it in GitHub Desktop.
DB Tech Chevereto
version: '2'
services:
db:
image: mariadb
volumes:
- /database:/var/lib/mysql:rw # I haven't had good luck putting this database in a different directory
restart: unless-stopped
networks:
- private
environment:
MYSQL_ROOT_PASSWORD: chevereto_root
MYSQL_DATABASE: chevereto
MYSQL_USER: chevereto
MYSQL_PASSWORD: chevereto
chevereto:
depends_on:
- db
image: nmtan/chevereto
restart: unless-stopped
networks:
- private
environment:
CHEVERETO_DB_HOST: db
CHEVERETO_DB_USERNAME: chevereto
CHEVERETO_DB_PASSWORD: chevereto
CHEVERETO_DB_NAME: chevereto
CHEVERETO_DB_PREFIX: chv_
volumes:
- /srv/dev-disk-by-label-ssd/conf/Chevereto/chevereto_images:/var/www/html/images:rw
- /srv/dev-disk-by-label-ssd/conf/php.ini:/usr/local/etc/php/php.ini:ro
ports:
- 8686:80
networks:
private:
volumes:
database:
chevereto_images:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment