Tweak docker-compose (#104)

* Remove env var causing celery container to exit, put containers in their own network

* Remove unnecessary network, remove version since we are mixing, make DB and redis ports internal

* Restore property for CELERY_WORKER_SHUTDOWN_INVERVAL since restart policy added
This commit is contained in:
Michael Derynck 2022-06-20 09:29:37 -06:00 committed by GitHub
parent 856c6d5302
commit ce982ae1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,6 @@ services:
condition: service_started
celery:
# TODO: change to the public image once it's public
image: grafana/oncall
restart: always
command: sh -c "./celery_with_exporter.sh"
@ -102,8 +101,8 @@ services:
cpus: 0.5
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
ports:
- 3306:3306
expose:
- 3306
volumes:
- dbdata:/var/lib/mysql
environment:
@ -119,8 +118,8 @@ services:
mem_limit: 100m
cpus: 0.1
restart: always
ports:
- 6379:6379
expose:
- 6379
rabbitmq:
image: "rabbitmq:3.7.15-management"