-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
75 lines (75 loc) · 2.07 KB
/
docker-compose.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
version: "3.3"
services:
nginx:
image: nginx:latest
ports:
- 80:80
- 443:443
network_mode: host
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certbot-challenge:/opt/certbot-challenge
#del- /etc/letsencrypt/live/metrics.languagetransfer.org/fullchain.pem:/opt/metrics.pem
#del- /etc/letsencrypt/live/metrics.languagetransfer.org/privkey.pem:/opt/metrics-key.pem
#del- /etc/letsencrypt/live/downloads.languagetransfer.org/fullchain.pem:/opt/downloads.pem
#del- /etc/letsencrypt/live/downloads.languagetransfer.org/privkey.pem:/opt/downloads-key.pem
logging:
driver: none
mongo:
image: mongo
restart: always
volumes:
- ./data/mongo:/data/db
- ./secrets:/opt/secrets
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
environment:
MONGO_INITDB_DATABASE: lt_logged_data
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD_FILE: /opt/secrets/mongo_root_password
MONGO_INITDB_USERNAME: lt_db_user
MONGO_INITDB_PASSWORD_FILE: /opt/secrets/mongo_password
ports:
- 127.0.0.1:27017:27017
logging:
driver: none
metrics:
image: metrics
restart: always
volumes:
- ./secrets:/opt/secrets
- ./queries/data:/opt/query-data
ports:
- 127.0.0.1:6774:6774
logging:
driver: none
postgres:
image: postgres:15.1
restart: always
environment:
- POSTGRES_USER=lt_db_user
# shh
- POSTGRES_PASSWORD_FILE=/opt/secrets/mongo_password
logging:
options:
max-size: 10m
max-file: "3"
ports:
- 127.0.0.1:5432:5432
volumes:
- /mnt/analytics/postgres:/var/lib/postgresql/data
- ./secrets:/opt/secrets
analytics:
image: analytics
# restart: always # oops lol
volumes:
- ./secrets:/opt/secrets
environment:
- POSTGRES_USER=lt_db_user
# shh
- POSTGRES_PASSWORD_FILE=/opt/secrets/mongo_password
metabase:
image: metabase/metabase:latest
ports:
- 127.0.0.1:3000:3000
links:
- postgres