-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-test.yml
69 lines (69 loc) · 1.66 KB
/
compose-test.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
nginx-alertrix:
image: nginx:latest
restart: always
volumes:
- ${DATA_PATH:-./}test/nginx-alertrix/conf.d:/etc/nginx/conf.d
- static:/var/www/static
depends_on:
alertrix:
condition: service_started
synapse:
condition: service_started
networks:
web:
aliases:
- alertrix.localhost
alertrix:
build:
context: .
dockerfile: ./test/Dockerfile
network: host
restart: no
env_file:
- test.env
volumes:
- static:/var/www/static
- ../alertrixdjango/alertrix:/app/alertrix
- ../djangomatrixappservice/src/matrixappservice:/app/matrixappservice
networks:
database:
web:
secrets:
- django_secret_key
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: 0d90402588b5c23c80bd6e44c0e6b4bf44090f7e5f0f490d6561f3321762c6e3
POSTGRES_USER: alertrix
POSTGRES_DB: alertrix
POSTGRES_INITDB_ARGS: "--encoding='UTF8' --lc-collate='C' --lc-ctype='C'"
networks:
database:
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d ${DATABASE_NAME} -U ${DATABASE_USER}" ]
interval: 10s
timeout: 5s
retries: 5
synapse:
image: matrixdotorg/synapse:v1.105.1
restart: always
environment:
SYNAPSE_SERVER_NAME: "synapse.localhost"
SYNAPSE_REPORT_STATS: "no"
volumes:
- ${DATA_PATH:-./}test/synapse:/data
user: "1000:1000"
healthcheck:
test: curl --fail http://localhost:8008/health || exit 1
networks:
web:
volumes:
static:
networks:
database:
web:
secrets:
django_secret_key:
file: ./DJANGO_SECRET_KEY