Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: '2'
services:
nginx:
image: shippingdocker/nginx:latest
ports:
- "80:80"
volumes:
- /srv/application:/var/www/html
networks:
- appnet
restart: always
php:
image: shippingdocker/php:latest
volumes:
- /srv/application:/var/www/html
networks:
- appnet
redis:
image: redis:alpine
volumes:
- redisdata:/data
networks:
- appnet
restart: always
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
volumes:
- data:/var/lib/mysql
networks:
- appnet
restart: always
networks:
appnet:
driver: "bridge"
volumes:
data:
driver: "local"
redisdata:
driver: "local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment