Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (47 sloc) 965 Bytes
version: '2'
services:
db:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=P@ssw0rd$$
- MYSQL_DATABASE=web_counter
- MYSQL_USER=web_counter
- MYSQL_PASSWORD=P@ssw0rd!
ports:
- "3306"
volumes:
- ./sql:/docker-entrypoint-initdb.d
networks:
back-tier:
aliases:
- mariadb
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./code:/code
- ./nginx.conf:/etc/nginx/nginx.conf
links:
- php
networks:
- front-tier
php:
image: evergreenitco/php7-fpm_mysqlcli
environment:
- MYSQL_DATABASE=web_counter
- MYSQL_USER=web_counter
- MYSQL_PASSWORD=P@ssw0rd!
- CODE_VERSION=1.0.0
ports:
- "9000"
volumes:
- ./code:/code
links:
- db
networks:
- front-tier
- back-tier
networks:
front-tier:
back-tier: