forked from dan-r/syncstorage-rs-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
30 lines (29 loc) · 977 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
services:
mariadb:
container_name: firefox_mariadb
image: linuxserver/mariadb:10.6.13
volumes:
- ./data/config:/config
- ./data/initdb.d/init.sql:/config/initdb.d/init.sql
restart: unless-stopped
environment:
MYSQL_DATABASE: syncstorage
MYSQL_USER: sync
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
syncserver:
container_name: firefox_syncserver
build: ./app/
restart: unless-stopped
ports:
- "8000:8000"
depends_on:
- mariadb
environment:
LOGLEVEL: info
SYNC_URL: ${SYNC_URL}
SYNC_CAPACITY: 10 # Max number of users that will be accepted
SYNC_MASTER_SECRET: ${SYNC_MASTER_SECRET}
METRICS_HASH_SECRET: ${METRICS_HASH_SECRET}
SYNC_SYNCSTORAGE_DATABASE_URL: mysql://sync:${MYSQL_PASSWORD}@mariadb:3306/syncstorage_rs
SYNC_TOKENSERVER_DATABASE_URL: mysql://sync:${MYSQL_PASSWORD}@mariadb:3306/tokenserver_rs