-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
37 lines (37 loc) · 1.08 KB
/
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
31
32
33
34
35
36
37
services:
synapse:
image: fractal-database-synapse:latest
build:
context: ./synapse/config
dockerfile: Dockerfile.synapse
args:
SYNAPSE_SERVER_NAME: "localhost"
SYNAPSE_REPORT_STATS: "no"
healthcheck:
test: curl localhost:8008/health
interval: 1s
timeout: 10s
retries: 10
labels:
- "org.homeserver.test=true"
# --timeout on up doesn't work with --exit-code-from. This ensures the synapse
# container is stopped immediately when the device exits
stop_signal: SIGKILL
test:
image: fractal-database-test:test
build:
context: ./
dockerfile: Dockerfile.test
depends_on:
synapse:
condition: service_healthy
environment:
ENV: test
TEST_CONFIG_DIR: /test-config
TEST_HOMESERVER_URL: http://synapse:8008
# not actually running a second synapse currently
TEST_ALTERNATE_HOMESERVER_URL: https://synapse2:8008
SYNAPSE_DOCKER_LABEL: "org.homeserver.test=true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /code