Created
May 30, 2018 09:48
-
-
Save tarrsalah/e9ac3d592bb77fc3fda38cd1b71dce20 to your computer and use it in GitHub Desktop.
docker-compose example
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
version: "3.6" | |
services: | |
web: | |
build: | |
context: . | |
volumes: | |
- "~/src/github.com/tarrsalah/dolibarr:/var/www/html" | |
ports: | |
- "3000:80" | |
depends_on: | |
- db | |
db: | |
image: mariadb:latest | |
volumes: | |
- dolibarr_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: db | |
MYSQL_USER: admin | |
MYSQL_PASSWORD: admin | |
volumes: | |
dolibarr_data: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment