2017-01-20 00:56:45 +03:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
shlink_nginx:
|
|
|
|
container_name: shlink_nginx
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/nginx.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8000:80"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
2017-01-21 22:12:12 +03:00
|
|
|
- ./docs:/home/shlink/www/public/docs
|
2017-01-20 00:56:45 +03:00
|
|
|
- ./data/infra/vhost.conf:/etc/nginx/conf.d/shlink-vhost.conf
|
|
|
|
links:
|
|
|
|
- shlink_php
|
|
|
|
|
|
|
|
shlink_php:
|
|
|
|
container_name: shlink_php
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/php.Dockerfile
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
links:
|
|
|
|
- shlink_db
|
|
|
|
|
|
|
|
shlink_db:
|
|
|
|
container_name: shlink_db
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./data/infra/db.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "3307:3306"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/shlink/www
|
|
|
|
- ./data/infra/database:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: shlink
|