Fix: nginx configuration

This commit is contained in:
Stan Yakubenko 2020-11-29 22:13:11 +05:00
parent 0df7f9dc70
commit ddaab80a42
5 changed files with 17 additions and 4 deletions

View File

@ -11,6 +11,9 @@ status: ## Show status of containers
up: ## Start all or c=<name> containers in foreground
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) --env-file $(ENV_FILE) up $(c)
shell: ## Start all or c=<name> containers in foreground
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) --env-file $(ENV_FILE) exec $(c) $(sh)
start: ## Start all or c=<name> containers in background
@$(DOCKER_COMPOSE) -f $(DOCKER_COMPOSE_FILE) --env-file $(ENV_FILE) up -d $(c)

View File

@ -10,8 +10,10 @@ services:
ports:
- ${NGINX_PORT}:80
volumes:
- ./docker/nginx/templates:/etc/nginx/templates
- ${PROJECT_DIR}:/var/www
- ./docker/nginx/default:/etc/nginx/conf.d/default.conf
environment:
WEB_ROOT: ${WEB_ROOT}
phpfpm:
build: ./docker/php-fpm/
@ -23,6 +25,10 @@ services:
- ./docker/php-fpm/xdebug.ini:/etc/php/7.4/mods-available/xdebug.ini
- ./docker/php-fpm/supervisor.conf:/etc/supervisor/supervisor_nodeamon.conf
- ./docker/imagick/policy.xml:/etc/ImageMagick-6/policy.xml
# One can add any configuration overrides.
# Just put them under ./docker/userconfigs/
# and map as following
# - ./docker/userconfigs/supervisor/conf.d:/etc/supervisor/conf.d
postgres:
image: postgis/postgis:12-master
@ -76,16 +82,18 @@ services:
- ./mysql-latest:/etc/mysql/conf.d
rabbitmq:
image: rabbitmq:3-management
image: rabbitmq:management-alpine
container_name: rabbit_${APP_NAME}
restart: 'no'
ports:
- ${RABBIT_ADMIN_PORT}:15672
- ${RABBIT_PORT}:5672
environment:
# default user will not work
# https://github.com/docker-library/rabbitmq/issues/452
RABBITMQ_DEFAULT_USER: ${USER}
RABBITMQ_DEFAULT_PASS: ${PASSWORD}
RABBITMQ_DEFAULT_VHOST: rabbitmq
RABBITMQ_DEFAULT_VHOST: ${APP_NAME}
volumes:
pgsql:

View File

@ -12,7 +12,7 @@ serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:php-fpm]
command=/usr/bin/php-fpm
command=/usr/sbin/php-fpm7.4
autostart = true
autorestart = false
stopasgroup=true

2
docker/userconfigs/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore