Created
August 14, 2019 19:22
-
-
Save shoesole/b30b2e764d32e7082c5b19bfc52024d4 to your computer and use it in GitHub Desktop.
docker-compose
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: '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