mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2025-08-06 11:56:58 +02:00
* These needed to be rolled in due to various dependency changes. * Fix the URL people should set to use their Custom Server (https://github.com/mozilla-services/syncstorage-rs/pull/1453) - [Ekleog](https://github.com/Ekleog) * Make docker files more podman friendly (https://github.com/mozilla-services/syncstorage-rs/pull/1431) - [mb](https://github.com/mb) * This PR also updates a number of dependencies
71 lines
2.1 KiB
YAML
71 lines
2.1 KiB
YAML
# NOTE: This docker-compose file was constructed to create a base for
|
|
# use by the End-to-end tests. It has not been fully tested for use in
|
|
# constructing a true, stand-alone sync server.
|
|
# If you're interested in doing that, please join our community in the
|
|
# github issues and comments.
|
|
#
|
|
# Application runs off of port 8000.
|
|
# you can test if it's available with
|
|
# curl "http://localhost:8000/__heartbeat__"
|
|
|
|
version: "3"
|
|
services:
|
|
sync-db:
|
|
image: docker.io/library/mysql:5.7
|
|
volumes:
|
|
- sync_db_data:/var/lib/mysql
|
|
restart: always
|
|
ports:
|
|
- "3306"
|
|
environment:
|
|
#MYSQL_RANDOM_ROOT_PASSWORD: yes
|
|
MYSQL_ROOT_PASSWORD: random
|
|
MYSQL_DATABASE: syncstorage
|
|
MYSQL_USER: test
|
|
MYSQL_PASSWORD: test
|
|
|
|
tokenserver-db:
|
|
image: docker.io/library/mysql:5.7
|
|
volumes:
|
|
- tokenserver_db_data:/var/lib/mysql
|
|
restart: always
|
|
ports:
|
|
- "3306"
|
|
environment:
|
|
#MYSQL_RANDOM_ROOT_PASSWORD: yes
|
|
MYSQL_ROOT_PASSWORD: random
|
|
MYSQL_DATABASE: tokenserver
|
|
MYSQL_USER: test
|
|
MYSQL_PASSWORD: test
|
|
|
|
mock-fxa-server:
|
|
image: app:build
|
|
restart: "no"
|
|
entrypoint: python3 /app/tools/integration_tests/tokenserver/mock_fxa_server.py
|
|
environment:
|
|
MOCK_FXA_SERVER_HOST: 0.0.0.0
|
|
MOCK_FXA_SERVER_PORT: 6000
|
|
|
|
syncserver:
|
|
# NOTE: The naming in the rest of this repository has been updated to reflect the fact
|
|
# that Syncstorage and Tokenserver are now part of one repository/server called
|
|
# "Syncserver" (updated from "syncstorage-rs"). We keep the legacy naming below for
|
|
# backwards compatibility with previous Docker images.
|
|
image: ${SYNCSTORAGE_RS_IMAGE:-syncstorage-rs:latest}
|
|
restart: always
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- sync-db
|
|
- tokenserver-db
|
|
environment:
|
|
SYNC_HOST: 0.0.0.0
|
|
SYNC_MASTER_SECRET: secret0
|
|
SYNC_SYNCSTORAGE__DATABASE_URL: mysql://test:test@sync-db:3306/syncstorage
|
|
SYNC_TOKENSERVER__DATABASE_URL: mysql://test:test@tokenserver-db:3306/tokenserver
|
|
SYNC_TOKENSERVER__RUN_MIGRATIONS: "true"
|
|
|
|
volumes:
|
|
sync_db_data:
|
|
tokenserver_db_data:
|