-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
64 lines (59 loc) · 1.66 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
version: "3.7"
services:
# ##########################################################################
# ###### TOOL SERVER #######
# ##########################################################################
validly-server:
depends_on:
- minio
ports:
- 8000:8000
build:
context: .
dockerfile: Dockerfile.dev
command: >
/bin/sh -c "
uvicorn app.main:app --reload --host 0.0.0.0;
"
volumes:
- .:/app
env_file:
- .env
networks:
- validly
###########################################################################
####### MINIO #######
###########################################################################
minio:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./volumes/minio/data:/export
- ./volumes/minio/config:/root/.minio
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=password
networks:
- validly
command: server --console-address :9001 /export
createbuckets:
image: minio/mc:latest
depends_on:
- minio
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
networks:
- validly
entrypoint: >
/bin/sh -c "
apk add --no-cache bash;
wait-for-it.sh minio:9000 -- echo 'Minio is up. Creating the bucket!!';
/usr/bin/mc config host add myminio http://minio:9000 minio password;
/usr/bin/mc mb myminio/validly;
/usr/bin/mc policy set download myminio/validly;
exit 0;
"
networks:
validly: