77 lines
2.0 KiB
YAML
77 lines
2.0 KiB
YAML
# nginxy
|
|
# - publiczny
|
|
nginxpublic:
|
|
build: images/nginx
|
|
volumes:
|
|
- "/opt/hangar18/configs/nginx-public/:/etc/nginx/sites-enabled:ro"
|
|
- "/opt/hangar18/logs/nginx-public/:/var/log/nginx/"
|
|
- "/opt/hangar18/run/php-fpm/:/var/run/php-fpm/"
|
|
- "/opt/hangar18/data/php-fpm/:/opt/php/"
|
|
links:
|
|
- etherpad
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
|
|
|
|
# - wewnętrzny
|
|
nginxinternal:
|
|
build: images/nginx
|
|
volumes:
|
|
- "/opt/hangar18/configs/nginx-internal/:/etc/nginx/sites-enabled:ro"
|
|
- "/opt/hangar18/logs/nginx-internal/:/var/log/nginx/"
|
|
- "/opt/hangar18/run/php-fpm/:/var/run/php-fpm/"
|
|
- "/opt/hangar18/data/php-fpm/:/opt/php/"
|
|
volumes_from:
|
|
- pgadmin
|
|
- rest
|
|
|
|
|
|
etherpad:
|
|
build: images/etherpad
|
|
links:
|
|
- postgres
|
|
volumes:
|
|
- "/opt/hangar18/logs/etherpad:var/log/etherpad"
|
|
|
|
|
|
# php-fpm front-endowy
|
|
# musi mieć dostęp do nginx.private, by robić restowe zapytania
|
|
# - frontend
|
|
frontend:
|
|
build: images/php-fpm
|
|
volumes:
|
|
- "/opt/hangar18/data/php-fpm/frontend/:/opt/php/frontend/"
|
|
- "/opt/hangar18/logs/php-fpm/:/var/log/php-fpm"
|
|
- "/opt/hangar18/run/php-fpm/:/var/run/php-fpm"
|
|
links:
|
|
- "nginxinternal:rest"
|
|
environment:
|
|
APP_NAME: "frontend"
|
|
|
|
rest:
|
|
build: images/rest
|
|
volumes:
|
|
- "/opt/hangar18/logs/php-fpm/:/var/log/php-fpm"
|
|
- "/opt/hangar18/run/php-fpm/:/var/run/php-fpm"
|
|
links:
|
|
- postgres
|
|
environment:
|
|
APP_NAME: "rest"
|
|
|
|
|
|
pgadmin:
|
|
build: images/pgadmin
|
|
volumes:
|
|
- "/opt/hangar18/configs/pgadmin/:/opt/pgadmin/conf/:ro"
|
|
- "/opt/hangar18/logs/php-fpm/:/var/log/php-fpm"
|
|
- "/opt/hangar18/run/php-fpm/:/var/run/php-fpm"
|
|
links:
|
|
- postgres
|
|
|
|
|
|
postgres:
|
|
build: images/postgres
|
|
volumes:
|
|
- "/opt/hangar18/data/postgres:/var/lib/postgresql"
|
|
- "/opt/hangar18/logs/postgres:/var/log/postgresql" |