-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
82 lines (68 loc) · 1.85 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
82 lines (68 loc) · 1.85 KB
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
version: "3.11"
services:
nginx:
build: frontend
image: ecstasy-loop-nginx:0.1
restart: on-failure
hostname: nginx
ports:
- "${BIND_HOST:-0.0.0.0}:${BIND_PORT:-8001}:80"
volumes:
# Настройки nginx
- "./settings/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- api-1
networks:
- ecstasy-loop-public-network
api-1:
build: web_app
image: ecstasy-loop-api:0.1
restart: on-failure
hostname: api-1
env_file:
- "web_app/env/.env"
volumes:
- "./loop_storage:/app/loop_storage"
- "./notifications.json:/app/notifications.json"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- redis
networks:
- ecstasy-loop-public-network
- ecstasy-loop-internal-network
redis:
image: redis:7.2.5-alpine
networks:
- ecstasy-loop-internal-network
graph_gen:
build: graph_gen
image: ecstasy-loop-graph-gen:0.1
restart: on-failure
hostname: graph_gen
env_file:
- "graph_gen/env/.env"
volumes:
- "./loop_storage:/app/loop_storage"
- "./notifications.json:/app/notifications.json:ro"
- "./es-matches.json:/app/es-matches.json:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- redis
networks:
- ecstasy-loop-internal-network
networks:
# Создаем свою сеть, чтобы не было конфликтов с уже существующей
ecstasy-loop-public-network:
ipam:
driver: default
config:
- subnet: '10.198.198.0/29'
ecstasy-loop-internal-network:
ipam:
driver: default
config:
- subnet: '10.199.198.0/29'