generated from dvdksn/clockbox
-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
docker-compose.yml
93 lines (84 loc) · 1.9 KB
/
docker-compose.yml
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
version: '3.8'
x-base: &base
build:
dockerfile: develop.Dockerfile
entrypoint: echo 'ok!'
tty: true
stdin_open: true
volumes:
- ./:/app
working_dir: /app
environment:
NODE_ENV: development
AMQP_URL: amqp://guest:guest@rabbitmq:5672
BASE_URL: http://web:9876
REDIS_URL: redis://redis:6379
STORAGE_ENDPOINT: http://minio:9000
GOOGLE_APPLICATION_CREDENTIALS: ${GOOGLE_APPLICATION_CREDENTIALS}
depends_on:
- redis
- rabbitmq
x-minio: &minio
image: quay.io/minio/minio:latest
command: server --console-address ":9001" --address ":9000" /data
env_file: .env
environment:
MINIO_SERVER_URL: http://localhost:9000
MINIO_BROWSER_REDIRECT_URL: http://localhost:9001
expose:
- 9000:9000
- 9001:9001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
services:
web:
<<: *base
entrypoint: yarn web-dev
restart: on-failure
ports:
- 9876:9876
worker:
<<: *base
entrypoint: sh -c 'wait-for redis:6379 rabbitmq:5672 -- yarn worker-dev'
restart: on-failure
rabbitmq:
image: rabbitmq:3-management-alpine
hostname: rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq:/var/lib/rabbitmq
restart: on-failure
redis:
image: redis:7-alpine
volumes:
- redis:/data
command: redis-server --appendonly yes
ports:
- 6379:6379
restart: on-failure
minio:
<<: *minio
ports:
- 9000:9000
- 9001:9001
volumes:
- storage1:/data
minio-mc:
image: quay.io/minio/mc:latest
env_file: .env
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set local $STORAGE_ENDPOINT $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
/usr/bin/mc mb local/$STORAGE_BUCKET_NAME;
"
volumes:
rabbitmq:
redis:
storage1: