Skip to content

Commit

Permalink
Move RabbitMQ image to organization (#212)
Browse files Browse the repository at this point in the history
Pin RabbitMQ to version 3.12 and rename container
to rabbitmq #209.
  • Loading branch information
marein authored Jan 24, 2024
1 parent e1dfc83 commit e548d4e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# dev|prod
APP_ENVIRONMENT='dev'
APP_KERNEL_SECRET='ThisTokenIsNotSoSecretChangeIt'
APP_WAIT_FOR='unix:///var/run/proxysql/proxysql.sock,mysql:3306,redis:6379,rabbit-mq:5672,nchan:81'
APP_RABBIT_MQ_DSN='amqp://guest:guest@rabbit-mq:5672?heartbeat=60&prefetchCount=30'
APP_WAIT_FOR='unix:///var/run/proxysql/proxysql.sock,mysql:3306,redis:6379,rabbitmq:5672,nchan:81'
APP_RABBIT_MQ_DSN='amqp://guest:guest@rabbitmq:5672?heartbeat=60&prefetchCount=30'

############################
# Chat Context #
Expand Down
16 changes: 8 additions & 8 deletions deploy/single-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ x-php-container:
environment:
APP_ENVIRONMENT: "prod"
APP_KERNEL_SECRET: "ThisTokenIsNotSoSecretChangeIt"
APP_WAIT_FOR: "unix:///var/run/proxysql/proxysql.sock,mysql:3306,redis:6379,rabbit-mq:5672,nchan:81"
APP_RABBIT_MQ_DSN: "amqp://guest:guest@rabbit-mq:5672?heartbeat=60&prefetchCount=30"
APP_WAIT_FOR: "unix:///var/run/proxysql/proxysql.sock,mysql:3306,redis:6379,rabbitmq:5672,nchan:81"
APP_RABBIT_MQ_DSN: "amqp://guest:guest@rabbitmq:5672?heartbeat=60&prefetchCount=30"
APP_CHAT_DOCTRINE_DBAL_URL: "mysqli://root:password@localhost/chat?persistent=1&unix_socket=/var/run/proxysql/proxysql.sock"
APP_CHAT_RUN_MIGRATIONS: "1"
APP_CHAT_PREDIS_CLIENT_URL: "redis://redis:6379?persistent=1"
Expand All @@ -27,7 +27,7 @@ x-php-container:
- mysql
- proxysql
- redis
- rabbit-mq
- rabbitmq
- nchan
volumes:
- proxysql.sock:/var/run/proxysql
Expand Down Expand Up @@ -130,11 +130,11 @@ services:
labels:
- "prometheus-job=redis"
- "prometheus-port=9121"
rabbit-mq:
image: marein/php-gaming-website:rabbit-mq
hostname: rabbit-mq
rabbitmq:
image: ghcr.io/gaming-platform/docker-rabbitmq:3.12
hostname: rabbitmq
volumes:
- rabbit-mq:/var/lib/rabbitmq/mnesia
- rabbitmq:/var/lib/rabbitmq/mnesia
labels:
- "prometheus-job=rabbitmq"
- "prometheus-port=15692"
Expand Down Expand Up @@ -176,5 +176,5 @@ volumes:
mysql:
proxysql.sock:
redis:
rabbit-mq:
rabbitmq:
prometheus:
12 changes: 6 additions & 6 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ x-php-container:
- mysql
- proxysql
- redis
- rabbit-mq
- rabbitmq
- nchan
volumes:
- proxysql.sock:/var/run/proxysql
Expand Down Expand Up @@ -67,11 +67,11 @@ services:
volumes:
- redis:/data
restart: on-failure
rabbit-mq:
image: marein/php-gaming-website:rabbit-mq
hostname: rabbit-mq
rabbitmq:
image: ghcr.io/gaming-platform/docker-rabbitmq:3.12
hostname: rabbitmq
volumes:
- rabbit-mq:/var/lib/rabbitmq/mnesia
- rabbitmq:/var/lib/rabbitmq/mnesia
restart: on-failure
nchan:
image: marein/php-gaming-website:nchan
Expand Down Expand Up @@ -129,4 +129,4 @@ volumes:
mysql:
proxysql.sock:
redis:
rabbit-mq:
rabbitmq:
14 changes: 6 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ x-php-container:
- mysql
- proxysql
- redis
- rabbit-mq
- rabbitmq
- nchan
restart: on-failure

Expand Down Expand Up @@ -134,13 +134,11 @@ services:
labels:
- "prometheus-job=redis"
- "prometheus-port=9121"
rabbit-mq:
build:
context: .
dockerfile: ./docker/rabbit-mq/Dockerfile
hostname: rabbit-mq
rabbitmq:
image: ghcr.io/gaming-platform/docker-rabbitmq:3.12
hostname: rabbitmq
volumes:
- rabbit-mq:/var/lib/rabbitmq/mnesia
- rabbitmq:/var/lib/rabbitmq/mnesia
labels:
- "prometheus-job=rabbitmq"
- "prometheus-port=15692"
Expand Down Expand Up @@ -218,5 +216,5 @@ volumes:
mysql:
proxysql.sock:
redis:
rabbit-mq:
rabbitmq:
prometheus:
3 changes: 0 additions & 3 deletions docker/rabbit-mq/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions project
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ buildProductionImages() {
docker build --file docker/traefik/Dockerfile --tag marein/php-gaming-website:traefik .
docker build --file docker/nchan/Dockerfile --tag marein/php-gaming-website:nchan .
docker build --file docker/redis/Dockerfile --tag marein/php-gaming-website:redis .
docker build --file docker/rabbit-mq/Dockerfile --tag marein/php-gaming-website:rabbit-mq .
docker build --file docker/grafana/Dockerfile --tag marein/php-gaming-website:grafana .
docker build --file docker/prometheus/Dockerfile --tag marein/php-gaming-website:prometheus .
}
Expand All @@ -110,7 +109,6 @@ pushProductionImages() {
docker push marein/php-gaming-website:traefik
docker push marein/php-gaming-website:nchan
docker push marein/php-gaming-website:redis
docker push marein/php-gaming-website:rabbit-mq
docker push marein/php-gaming-website:grafana
docker push marein/php-gaming-website:prometheus
}
Expand Down

0 comments on commit e548d4e

Please sign in to comment.