-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-stage.yaml
159 lines (147 loc) · 4.46 KB
/
docker-compose-stage.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.9'
services:
frontend-gptutor-stage-tg:
env_file:
- .env
build:
context: GPTutor-Frontend
dockerfile: Dockerfile
args:
REACT_APP_PLATFORM: "TG"
REACT_APP: 'GPTutor'
REACT_APP_BACKEND_HOST: 'https://stage.${HOST}/'
REACT_APP_BACKEND_HOST_WS: "wss://stage.${HOST}/websocket/"
container_name: frontend-gptutor-stage-tg
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend-gptutor-stage-tg.rule=Host(`deep-gpt.stage.${HOST}`)"
- "traefik.http.routers.frontend-gptutor-stage-tg.entrypoints=websecure"
- "traefik.http.routers.frontend-gptutor-stage-tg.tls.certresolver=myresolver"
networks:
- trfk
frontend-gptutor-stage:
env_file:
- .env
build:
context: GPTutor-Frontend
dockerfile: Dockerfile
args:
REACT_APP_PLATFORM: "VK"
REACT_APP: 'GPTutor'
REACT_APP_BACKEND_HOST: 'https://stage.${HOST}/'
REACT_APP_BACKEND_HOST_WS: "wss://stage.${HOST}/websocket/"
container_name: frontend-gptutor-stage
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend-gptutor-stage.rule=Host(`gptutor.stage.${HOST}`)"
- "traefik.http.routers.frontend-gptutor-stage.entrypoints=websecure"
- "traefik.http.routers.frontend-gptutor-stage.tls.certresolver=myresolver"
networks:
- trfk
frontend-stable-art-stage:
env_file:
- .env
build:
context: GPTutor-Frontend
dockerfile: Dockerfile
args:
REACT_APP_PLATFORM: "VK"
REACT_APP: 'Stable Art'
REACT_APP_BACKEND_HOST: 'https://stage.${HOST}/'
REACT_APP_BACKEND_HOST_WS: "wss://stage.${HOST}/websocket/"
container_name: frontend-stable-art-stage
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend-stable-art-stage.rule=Host(`stable-art.stage.${HOST}`)"
- "traefik.http.routers.frontend-stable-art-stage.entrypoints=websecure"
- "traefik.http.routers.frontend-stable-art-stage.tls.certresolver=myresolver"
networks:
- trfk
frontend-ai-humor-stage:
env_file:
- .env
build:
context: GPTutor-Frontend
dockerfile: Dockerfile
args:
REACT_APP_PLATFORM: "VK"
REACT_APP: 'AiHumor'
REACT_APP_BACKEND_HOST: 'https://stage.${HOST}/'
REACT_APP_BACKEND_HOST_WS: "wss://stage.${HOST}/websocket/"
container_name: frontend-ai-humor-stage
labels:
- "traefik.enable=true"
- "traefik.http.routers.ai-humor-stage.rule=Host(`ai-humor.stage.${HOST}`)"
- "traefik.http.routers.ai-humor-stage.entrypoints=websecure"
- "traefik.http.routers.ai-humor-stage.tls.certresolver=myresolver"
networks:
- trfk
frontend-smart-vk-doc:
env_file:
- .env
build:
context: GPTutor-Frontend
dockerfile: Dockerfile
args:
REACT_APP_PLATFORM: "VK"
REACT_APP: 'SmartVkDoc'
REACT_APP_BACKEND_HOST: 'https://stage.${HOST}/'
REACT_APP_BACKEND_HOST_WS: "wss://stage.${HOST}/websocket/"
container_name: frontend-smart-vk-doc
labels:
- "traefik.enable=true"
- "traefik.http.routers.smart-vk-doc-stage.rule=Host(`smart-vk-doc.stage.${HOST}`)"
- "traefik.http.routers.smart-vk-doc-stage.entrypoints=websecure"
- "traefik.http.routers.smart-vk-doc-stage.tls.certresolver=myresolver"
networks:
- trfk
backend-stage:
env_file:
- .env
- .env-stage
build: ./GPTutor-Backend
container_name: backend-stage
depends_on:
- postgresql-stage
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-stage.rule=Host(`stage.${HOST}`)"
- "traefik.http.routers.backend-stage.entrypoints=websecure"
- "traefik.http.routers.backend-stage.tls.certresolver=myresolver"
networks:
- trfk
rag-stage:
env_file:
- .env
- .env-stage
container_name: rag-stage
build:
context: ./GPTutor-Rag
ports:
- "5001:5000"
networks:
- trfk
models-stage:
env_file:
- .env-stage
container_name: models-stage
build:
context: GPTutor-Models
dockerfile: Dockerfile
networks:
- trfk
postgresql-stage:
image: 'postgres:13.1-alpine'
container_name: postgresql-stage
env_file:
- .env-stage
volumes:
- db-data-stage:/var/lib/postgresql/data
networks:
- trfk
volumes:
db-data-stage:
networks:
trfk:
driver: overlay
external: true