Fix: rabbit and mysql configuration

This commit is contained in:
Stan Yakubenko 2020-12-19 19:08:03 +05:00
parent ddaab80a42
commit ec6359c9c1
2 changed files with 10 additions and 8 deletions

View File

@ -2,12 +2,12 @@ PROJECT_DIR=.
# all container will be appended with this # all container will be appended with this
APP_NAME=dev_station APP_NAME=dev_station
# default user/password pair for all services # default user/password pair for all services
USER=user APP_USER=user
EMAIL=some@some.com EMAIL=some@some.com
PASSWORD=password PASSWORD=password
# ports config # ports config
PG_ADMIN_PORT=1080
NGINX_PORT=8080 NGINX_PORT=8080
PG_ADMIN_PORT=1080
PG_PORT=5432 PG_PORT=5432
RABBIT_PORT=5672 RABBIT_PORT=5672
RABBIT_ADMIN_PORT=15672 RABBIT_ADMIN_PORT=15672

View File

@ -29,6 +29,10 @@ services:
# Just put them under ./docker/userconfigs/ # Just put them under ./docker/userconfigs/
# and map as following # and map as following
# - ./docker/userconfigs/supervisor/conf.d:/etc/supervisor/conf.d # - ./docker/userconfigs/supervisor/conf.d:/etc/supervisor/conf.d
environment:
XDEBUG_PORT: ${XDEBUG_PORT}
XDEBUG_HOST: ${XDEBUG_HOST}
XDEBUG_IDE: ${XDEBUG_IDE}
postgres: postgres:
image: postgis/postgis:12-master image: postgis/postgis:12-master
@ -61,8 +65,8 @@ services:
ports: ports:
- ${MYSQL_LEGACY_PORT}:3306 - ${MYSQL_LEGACY_PORT}:3306
volumes: volumes:
- ./mysql/my.cnf:/etc/alternatives/my.cnf - ./docker/mysql/my.cnf:/etc/alternatives/my.cnf
- ./mysql/mysql.conf.d:/etc/mysql/conf.d/ - ./docker/mysql/mysql.conf.d:/etc/mysql/conf.d/
- mysql_legacy:/var/lib/mysql - mysql_legacy:/var/lib/mysql
environment: environment:
MYSQL_TCP_PORT: ${MYSQL_LEGACY_PORT} MYSQL_TCP_PORT: ${MYSQL_LEGACY_PORT}
@ -79,7 +83,7 @@ services:
- ${MYSQL_PORT}:3306 - ${MYSQL_PORT}:3306
volumes: volumes:
- mysql:/var/lib/mysql - mysql:/var/lib/mysql
- ./mysql-latest:/etc/mysql/conf.d - ./docker/mysql-latest:/etc/mysql/conf.d
rabbitmq: rabbitmq:
image: rabbitmq:management-alpine image: rabbitmq:management-alpine
@ -89,9 +93,7 @@ services:
- ${RABBIT_ADMIN_PORT}:15672 - ${RABBIT_ADMIN_PORT}:15672
- ${RABBIT_PORT}:5672 - ${RABBIT_PORT}:5672
environment: environment:
# default user will not work RABBITMQ_DEFAULT_USER: ${APP_USER}
# https://github.com/docker-library/rabbitmq/issues/452
RABBITMQ_DEFAULT_USER: ${USER}
RABBITMQ_DEFAULT_PASS: ${PASSWORD} RABBITMQ_DEFAULT_PASS: ${PASSWORD}
RABBITMQ_DEFAULT_VHOST: ${APP_NAME} RABBITMQ_DEFAULT_VHOST: ${APP_NAME}