76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
##
|
|
## WEBSITE RESSOURCES
|
|
##
|
|
nginx:
|
|
build: build/nginx
|
|
container_name: ${CLIENT}.nginx.${ENV}
|
|
hostname: nginx
|
|
volumes:
|
|
- ../volume/nginx/etc.nginx.sites-enabled:/etc/nginx/sites-enabled
|
|
- ../volume/www:/home/www
|
|
restart: always
|
|
|
|
php:
|
|
build: build/php_win
|
|
container_name: ${CLIENT}.php.${ENV}
|
|
hostname: php
|
|
volumes:
|
|
- ../volume/www:/home/www
|
|
restart: always
|
|
|
|
postgres:
|
|
image: postgres:9.6
|
|
container_name: ${CLIENT}.postgres.${ENV}
|
|
hostname: postgres
|
|
env_file: env/postgres.env
|
|
volumes:
|
|
- tt-postgres:/var/lib/postgresql/data
|
|
restart: always
|
|
|
|
mongo:
|
|
image: mongo:3.4
|
|
container_name: ${CLIENT}.mongo.${ENV}
|
|
hostname: mongo
|
|
volumes:
|
|
- tt-mongo:/data/db
|
|
restart: always
|
|
|
|
elasticsearch:
|
|
build: build/elasticsearch
|
|
container_name: ${CLIENT}.elasticsearch.${ENV}
|
|
hostname: elasticsearch
|
|
volumes:
|
|
- search_db_data:/usr/share/elasticsearch/data
|
|
restart: always
|
|
|
|
##
|
|
## STORE RESSOURCES
|
|
##
|
|
store-php:
|
|
build: build/php_light_win
|
|
container_name: ${CLIENT}.store-php.${ENV}
|
|
hostname: store-php
|
|
volumes:
|
|
- ../volume/www:/home/www
|
|
restart: always
|
|
|
|
store-mysql:
|
|
build: build/mysql
|
|
container_name: ${CLIENT}.store-mysql.${ENV}
|
|
hostname: store-mysql
|
|
env_file: env/store-mysql.env
|
|
volumes:
|
|
- ../volume/store-mysql/var.lib.mysql:/var/lib/mysql
|
|
restart: always
|
|
|
|
# Elastic does not play well with physical volume (folder rights trouble)
|
|
volumes:
|
|
? search_db_data
|
|
tt-postgres:
|
|
external: true
|
|
tt-mongo:
|
|
external: true
|