Created
November 14, 2017 11:42
-
-
Save leolabs/37924ae2423611cc9819e984aea658a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fm_web: | |
image: nginx:alpine | |
ports: | |
- "8090:80" | |
volumes: | |
- $PWD:/code:ro | |
- ./docker/nginx-local.conf:/etc/nginx/conf.d/default.conf | |
links: | |
- fm_php | |
fm_php: | |
build: ./docker/php | |
environment: | |
- "ENVIRONMENT=development" | |
- "DATABASE_URL=mysql://root:root@db/fm" | |
- "HOMEDOMAIN=localhost:8090" | |
volumes: | |
- $PWD:/code:rw | |
links: | |
- fm_db | |
fm_db: | |
image: mysql:8 | |
ports: | |
- "3310:3306" | |
volumes: | |
- fm_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: fm | |
MYSQL_USER: food | |
MYSQL_PASSWORD: food |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment