Skip to content

Instantly share code, notes, and snippets.

@shoesole
Created August 14, 2019 19:22
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 shoesole/b30b2e764d32e7082c5b19bfc52024d4 to your computer and use it in GitHub Desktop.
Save shoesole/b30b2e764d32e7082c5b19bfc52024d4 to your computer and use it in GitHub Desktop.
docker-compose
version: '2'
services:
web:
build: ./docker/web
ports:
- "8080:80"
- "4043:443"
volumes:
- .:/var/www
- /home/ssl/certs:/etc/ssl/certs
depends_on:
- db
- redis
db:
image: mysql:5.7
ports:
- "33006:3306"
environment:
- MYSQL_ROOT_PASSWORD=xxxx
- MYSQL_DATABASE=xxxx
volumes:
- ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./docker/db/data.sql:/docker-entrypoint-initdb.d/data.sql
- dbstore:/var/lib/mysql
redis:
image: redis
volumes:
dbstore:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment