forked from crs4/life_monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
95 lines (88 loc) · 2.71 KB
/
docker-compose.dev.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
db:
environment:
- "ALLOW_EMPTY_PASSWORD=yes"
lm:
user: "${USER_UID}:${USER_GID}"
environment:
- "FLASK_ENV=development"
- "HOME=/lm"
# Normally, OAuthLib will raise an InsecureTransportError if you attempt to use OAuth2 over HTTP,
# rather than HTTPS. Setting this environment variable will prevent this error from being raised.
# This is mostly useful for local testing, or automated tests. Never set this variable in production.
- "AUTHLIB_INSECURE_TRANSPORT=1"
- "SERVER_NAME=lm:8000"
volumes:
- "./:/lm"
- "/lm/lifemonitor/static/dist"
ports:
- "8000"
init:
user: "${USER_UID}:${USER_GID}"
environment:
- "FLASK_ENV=development"
# Normally, OAuthLib will raise an InsecureTransportError if you attempt to use OAuth2 over HTTP,
# rather than HTTPS. Setting this environment variable will prevent this error from being raised.
# This is mostly useful for local testing, or automated tests. Never set this variable in production.
- "AUTHLIB_INSECURE_TRANSPORT=1"
- "HOME=/lm"
volumes:
- "./:/lm"
worker:
user: "${USER_UID}:${USER_GID}"
environment:
- "FLASK_ENV=development"
- "WORKER_PROCESSES=1"
- "WORKER_THREADS=1"
volumes:
- "./:/lm"
- "/lm/lifemonitor/static/dist"
ws_server:
user: "${USER_UID}:${USER_GID}"
environment:
- "FLASK_ENV=development"
volumes:
- "./:/lm"
- "/lm/lifemonitor/static/dist"
dev_proxy:
image: bitnami/nginx:1.19-debian-10
depends_on:
- "db"
- "redis"
- "lm"
ports:
- "8000:8443"
restart: "unless-stopped"
healthcheck:
test: >
/bin/sh -c "http_code=$$(curl --insecure https://dev_proxy:8443/health -s -w %{http_code}); if [ $${http_code} -eq 502 ]; then exit 1; fi;"
interval: "2s"
retries: 3
timeout: "1s"
networks:
- life_monitor
volumes:
- "./certs:/nginx/certs:ro"
- "./docker/nginx.dev.conf:/opt/bitnami/nginx/conf/server_blocks/lm.conf:ro"
github_event_proxy:
image: crs4/smeeio
restart: "unless-stopped"
command: |
sh -c "smee --url https://smee.io/$$GITHUB_INTEGRATION_EVENTS_CHANNEL --target https://dev_proxy:8443/integrations/github"
depends_on:
- "db"
- "init"
env_file:
- settings.conf
environment:
- "FLASK_ENV=development"
- "SMEE_TARGET=https://lm:8000/integrations/github"
- "NODE_EXTRA_CA_CERTS=/certs/ca.key"
- "NODE_TLS_REJECT_UNAUTHORIZED=0"
volumes:
- "./certs:/certs:ro"
networks:
- life_monitor
prometheus:
volumes:
- "./prometheus.dev.yml:/etc/prometheus/prometheus.yml"