-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose-observability.yaml
More file actions
54 lines (49 loc) · 1.18 KB
/
docker-compose-observability.yaml
File metadata and controls
54 lines (49 loc) · 1.18 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
x-gpt2giga-common: &gpt2giga-common
image: ghcr.io/ai-forever/gpt2giga:latest
restart: unless-stopped
env_file:
- .env
x-mitmproxy-common: &mitmproxy-common
restart: always
container_name: mitmproxy
image: mitmproxy/mitmproxy:latest
volumes:
- ~/.mitmproxy:/home/mitmproxy/.mitmproxy
command: mitmweb --web-host 0.0.0.0 --web-port 8081 --ssl-insecure
stdin_open: true
tty: true
services:
gpt2giga-prod:
<<: *gpt2giga-common
profiles: ["PROD"]
pull_policy: always
container_name: gpt2giga
environment:
GPT2GIGA_MODE: "PROD"
ports:
- "127.0.0.1:${GPT2GIGA_PORT:-8090}:${GPT2GIGA_PORT:-8090}"
gpt2giga-dev:
<<: *gpt2giga-common
profiles: ["DEV"]
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: "3.13"
container_name: gpt2giga
environment:
GPT2GIGA_MODE: "DEV"
ports:
- "${GPT2GIGA_PORT:-8090}:${GPT2GIGA_PORT:-8090}"
mitmproxy-prod:
<<: *mitmproxy-common
profiles: ["PROD"]
ports:
- "8080:8080"
- "127.0.0.1:8081:8081"
mitmproxy-dev:
<<: *mitmproxy-common
profiles: [ "DEV" ]
ports:
- "8080:8080"
- "8081:8081"