Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nginx:
- build: nginx
- ports:
- - "8080:80"
- volumes:
- - ./application:/var/www/html
- networks:
- - example
- php:
- build: php
- volumes:
- - ./application:/var/www/html
- networks:
- - example
- mysql:
- image: mysql:5.7
- environment:
- MYSQL_ROOT_PASSWORD: secret
- MYSQL_DATABASE: styde
- MYSQL_USER: styde
- MYSQL_PASSWORD: secret
- ports:
- - "33060:3306"
- volumes:
- - mysqldata:/var/lib/mysql
- networks:
- - example
- redis:
- image: redis:alpine
- volumes:
- - redisdata:/data
- networks:
- - example
- networks:
- stydenet:
- driver: "bridge"
- volumes:
- redisdata:
- driver: "local"
- mysqldata:
- driver: "local"
Add Comment
Please, Sign In to add comment