-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
100 lines (96 loc) · 1.96 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
services:
defi_stats:
container_name: api
env_file:
- ./api/.env
build:
context: ./api
dockerfile: Dockerfile
args:
- USER_ID=${USER_ID:-1000}
- GROUP_ID=${GROUP_ID:-1000}
volumes:
- ./api:/home/komodian/api
ports:
- 127.0.0.1:7068:7068
depends_on:
- pgsqldb
- komodefi_8762
- memcached
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
restart: always
command: ["poetry", "run", "python", "main.py"]
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
komodefi_8762:
container_name: komodefi_8762
env_file:
- ./mm2_8762/.env
build:
context: ./mm2_8762
dockerfile: Dockerfile
args:
- USER_ID=${USER_ID:-1000}
- GROUP_ID=${GROUP_ID:-1000}
volumes:
- ./mm2_8762:/home/komodian/mm2
ports:
- 127.0.0.1:7862:7862
- 127.0.0.1:42845:42845
- 127.0.0.1:42855:42855
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
restart: always
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memcached:
container_name: memcached
image: memcached:latest
ports:
- "127.0.0.1:11211:11211"
restart: always
depends_on:
- pgsqldb
command: ["memcached", "-I", "40m", "-m", "100m"]
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
pgsqldb:
container_name: pgsqldb
image: postgres:12.17
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
env_file:
- ./api/.env
depends_on:
- komodefi_8762
ports:
- "127.0.0.1:5432:5432"
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "10"
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
volumes:
pg_data: