-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (68 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
75 lines (68 loc) · 1.71 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
services:
# Servizio per costruire l'immagine
tuya-localkey-extractor-backend-image:
build:
context: backend
dockerfile: Dockerfile
image: tuya-localkey-extractor-backend:latest
tuya-localkey-extractor-frontend-image:
build:
context: frontend
dockerfile: Dockerfile
image: tuya-localkey-extractor-frontend:latest
redis:
image: redis:latest
container_name: tuya-localkey-extractor-redis
ports:
- "6379:6379"
volumes:
- ./redis_data:/data
cli:
image: tuya-localkey-extractor-backend:latest
container_name: py-tuya-localkey-extractor-cli
depends_on:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
configs:
- source: config_json
target: /app/config.json
command: python api.py --print
cli-cache:
image: tuya-localkey-extractor-backend:latest
container_name: py-tuya-localkey-extractor-cli-cache
depends_on:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
configs:
- source: config_json
target: /app/config.json
command: python api.py --cache --print
api:
image: tuya-localkey-extractor-backend:latest
container_name: py-tuya-localkey-extractor-api
depends_on:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
ports:
- "5005:80"
configs:
- source: config_json
target: /app/config.json
command: python server.py
frontend:
image: tuya-localkey-extractor-frontend:latest
container_name: py-tuya-localkey-extractor-frontend
depends_on:
- redis
- api
ports:
- "5000:80"
configs:
config_json:
file: ./backend/config.json