2016-03-02 12:31:53 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
nginx:
|
2019-06-19 12:54:38 +00:00
|
|
|
image: nginx:alpine
|
2016-03-02 12:31:53 +00:00
|
|
|
ports:
|
2019-06-19 12:54:38 +00:00
|
|
|
- "8000:80"
|
2016-03-02 12:31:53 +00:00
|
|
|
volumes:
|
|
|
|
- ./docker/nginx/nginx.conf:/nginx.conf
|
|
|
|
- ./docker/logs/nginx:/var/log/nginx
|
|
|
|
- .:/var/www/html
|
|
|
|
links:
|
|
|
|
- php:php
|
|
|
|
command: nginx -c /nginx.conf
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2016-03-02 12:31:53 +00:00
|
|
|
php:
|
|
|
|
build:
|
|
|
|
context: docker/php
|
|
|
|
args:
|
2016-03-03 18:21:37 +00:00
|
|
|
# Set here your timezone using one of this: http://php.net/manual/en/timezones.php
|
2016-03-02 12:31:53 +00:00
|
|
|
timezone: 'Europe/Monaco'
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
volumes:
|
|
|
|
- .:/var/www/html
|
|
|
|
#links:
|
|
|
|
# - "postgres:rdbms"
|
|
|
|
# - "mariadb:rdbms"
|
|
|
|
env_file:
|
|
|
|
- ./docker/php/env
|
|
|
|
# Comment non-used DBMS lines
|
|
|
|
# If all DBMS are commented out, sqlite will be used as default
|
|
|
|
# - ./docker/postgres/env
|
|
|
|
# - ./docker/mariadb/env
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# postgres:
|
|
|
|
# image: postgres:11-alpine
|
2016-03-02 12:31:53 +00:00
|
|
|
# ports:
|
|
|
|
# - "5432:5432"
|
|
|
|
# volumes:
|
|
|
|
# - ./docker/data/pgsql:/var/lib/postgresql/data
|
|
|
|
# env_file:
|
|
|
|
# - ./docker/postgres/env
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# mariadb:
|
2016-03-02 12:31:53 +00:00
|
|
|
# image: mariadb:10
|
|
|
|
# ports:
|
|
|
|
# - "3306:3306"
|
|
|
|
# volumes:
|
|
|
|
# - ./docker/data/mariadb:/var/lib/mysql
|
|
|
|
# env_file:
|
|
|
|
# - ./docker/mariadb/env
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2019-06-19 12:54:38 +00:00
|
|
|
# rabbitmq:
|
|
|
|
# image: rabbitmq:3-management-alpine
|
|
|
|
# ports:
|
|
|
|
# - "15672:15672"
|
2016-09-13 18:31:32 +00:00
|
|
|
|
2016-09-14 07:10:13 +00:00
|
|
|
redis:
|
2019-06-19 12:54:38 +00:00
|
|
|
image: redis:4-alpine
|
2016-09-13 18:31:32 +00:00
|
|
|
ports:
|
|
|
|
- "6379:6379"
|