Created
October 24, 2017 15:16
-
-
Save omarkdev/d5d04196f24162b856a54dbad0dfe6f0 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
# v2 syntax | |
version: '2' | |
volumes: | |
# MySQL Data | |
subnet-mysql-data: | |
driver: local | |
# Redis Data | |
subnet-redis-data: | |
driver: local | |
services: | |
# PHP (with Caddy) | |
app: | |
image: ambientum/php:7.1-caddy | |
container_name: subnet-php | |
volumes: | |
- .:/var/www/app | |
ports: | |
- "8080:8080" | |
links: | |
- cache | |
- mysql | |
# MySQL (5.7) | |
mysql: | |
image: ambientum/mysql:5.7 | |
container_name: subnet-mysql | |
volumes: | |
- subnet-mysql-data:/var/lib/mysql | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=subnet | |
- MYSQL_DATABASE=subnet | |
- MYSQL_USER=subnet | |
- MYSQL_PASSWORD=subnet | |
# Redis | |
cache: | |
image: ambientum/redis:3.2 | |
container_name: subnet-redis | |
command: --appendonly yes | |
volumes: | |
- subnet-redis-data:/data | |
ports: | |
- "6379:6379" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment