-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
112 lines (96 loc) · 2.77 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: "3"
services:
app:
build:
context: ./frontend
dockerfile: Dockerfile
working_dir: "/home/node/app"
volumes:
- /var/app/medsync/:/home/node/app/dist
# Uncomment this if you are running in development
# - ./frontend:/home/node/app
# Uncomment this if you are running in development
# command: ["npm", "run", "dev", "--host"]
# Comment this if you are running in production
command: ["npm", "run", "build"]
stop_signal: SIGINT
bot:
image: "medsyncapp_bot"
stop_signal: SIGINT
build:
context: ./backend
dockerfile: ./bot.Dockerfile
volumes:
- ./backend/src:/src/ # Volume for bot code
- /var/app/medsync:/src/public # Volume for static files, that are shared between bot and frontend
restart: always
env_file:
- ".env"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
pg_database:
image: postgres:13-alpine
ports:
- "5452:5432" # Change if you like! 5439 is external to container
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
command: "postgres -c max_connections=150 -c shared_buffers=512MB -c effective_cache_size=1536MB -c maintenance_work_mem=128MB -c checkpoint_completion_target=0.9 -c wal_buffers=16MB -c default_statistics_target=100 -c random_page_cost=1.1 -c effective_io_concurrency=200 -c work_mem=3495kB -c min_wal_size=1GB -c max_wal_size=4GB -c max_worker_processes=2 -c max_parallel_workers_per_gather=1 -c max_parallel_workers=2 -c max_parallel_maintenance_workers=1"
env_file:
- '.env'
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
webhook:
image: "medsyncapp_web"
stop_signal: SIGINT
build:
context: ./backend
dockerfile: ./web.Dockerfile
ports:
- "3779:8000"
volumes:
- ./backend/src:/src
restart: always
env_file:
- ".env"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
redis_cache:
image: redis:6.2-alpine
restart: always
command: redis-server --port $REDIS_PORT --save 20 1 --loglevel warning --requirepass $REDIS_PASSWORD
env_file:
- ".env"
volumes:
- cache:/data
mkdocs:
build:
context: mkdocs
dockerfile: Dockerfile
container_name: "mkdocs_container"
# ports:
# - "3780:8000"
volumes:
- ./mkdocs:/usr/src/mkdocs
- /var/app/mkdocs/public_docs:/usr/src/mkdocs/public_docs
# ngrok:
# image: ngrok/ngrok:latest
# restart: unless-stopped
# environment:
# - NGROK_CONFIG=/etc/ngrok.yml
# volumes:
# - ./ngrok.yml:/etc/ngrok.yml
# expose:
# - 443
volumes:
pgdata: { }
cache: { }