Skip to content

Commit

Permalink
Add platform to docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
esanuandra authored and Archaeopteryx committed Jun 23, 2023
1 parent 50430f5 commit 8805115
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
# https://github.com/moby/moby/issues/32612#issuecomment-294055017
# cache_from: TODO
image: treeherder-backend
platform: linux/amd64
environment:
# Development/CI-specific environment variables only.
# Those that do not vary across environments should go in `Dockerfile`.
Expand Down Expand Up @@ -64,11 +65,13 @@ services:
- .:/app
ports:
- '5000:5000'
platform: linux/amd64

mysql:
container_name: mysql
# https://hub.docker.com/r/library/mysql/
image: mysql:5.7.41
platform: linux/amd64
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=treeherder
Expand Down Expand Up @@ -119,6 +122,7 @@ services:
depends_on:
- mysql
- rabbitmq
platform: linux/amd64

celery:
build:
Expand All @@ -136,6 +140,7 @@ services:
- mysql
- redis
- rabbitmq
platform: linux/amd64
volumes:
# TODO: Experiment with using tmpfs when testing, to speed up database-using Python tests.
mysql_data: {}

0 comments on commit 8805115

Please sign in to comment.