-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
80 lines (73 loc) · 1.54 KB
/
docker-compose.yaml
File metadata and controls
80 lines (73 loc) · 1.54 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
76
77
78
79
80
version: "3.3"
services:
next:
build:
context: ./
ports:
- "3000:3000"
- "5555:5555" # Prisma studio
volumes:
- ./src:/app/src
- ./prisma:/app/prisma
- ./.env:/app/.env
networks:
- reci-one
db:
image: mysql:8.0.30
restart: always
environment:
- MYSQL_DATABASE=${MY_SQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MY_SQL_ROOT_PASSWORD}
volumes:
- reci-one-db:/var/lib/mysql
networks:
- reci-one
ports:
- "3306:3306"
parser:
build: ./parser
environment:
FLASK_DEBUG: TRUE
ports:
- "8000:8000"
volumes:
- ./parser:/parser
networks:
- reci-one
minio:
image: minio/minio
command: minio server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${SECRET_ACCESS_KEY}
restart: always
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 5s
retries: 1
start_period: 5s
timeout: 5s
volumes:
- minio-data:/data
networks:
- reci-one
createbuckets:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 ${ACCESS_KEY_ID} ${SECRET_ACCESS_KEY};
/usr/bin/mc mb myminio/${BUCKET_NAME};
"
networks:
- reci-one
volumes:
reci-one-db:
minio-data:
networks:
reci-one: