forked from gregor-tokarev/gif_convertor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
73 lines (71 loc) · 1.81 KB
/
docker-compose.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
version: "3.7"
services:
spa:
build:
context: .
dockerfile: ./docker/Dockerfile-spa
container_name: spa
restart: always
ports:
- "4200:80"
worker:
build:
context: .
dockerfile: ./docker/Dockerfile-worker
environment:
MINIO_ENDPOINT: minio
MINIO_ACCESS_KEY: minio
MINIO_PORT: 9000
MINIO_SECRET_KEY: minio123
MINIO_USE_SSL: "false"
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: redis
restart: always
deploy:
replicas: 5
depends_on:
- minio
- redis
service:
build:
context: .
dockerfile: ./docker/Dockerfile-service
container_name: service
environment:
MINIO_ENDPOINT: minio
MINIO_ACCESS_KEY: minio
MINIO_PORT: 9000
MINIO_SECRET_KEY: minio123
MINIO_USE_SSL: false
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: redis
restart: always
ports:
- "3000:3000"
depends_on:
- minio
- redis
minio:
image: minio/minio
container_name: minio
restart: always
ports:
- "9000:9000"
- "9090:9090"
volumes:
- minio-data:/data
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
command: server /data --console-address ":9090"
redis:
image: redis:6.2.6
container_name: redis
restart: always
ports:
- "6379:6379"
command: redis-server --appendonly yes --requirepass redis
volumes:
minio-data: