forked from kubernetes-bad/metachar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.57 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
version: "3.8"
services:
metachar-backend:
build: ./backend
container_name: metachar-backend
restart: unless-stopped
ports:
- "3000:3000"
#volumes:
# - ./backend/config/local.yml:/app/config/local.yml
metachar-frontend:
build: ./frontend
container_name: metachar-frontend
restart: unless-stopped
ports:
- "8006:8006"
db:
image: mysql:8.0
container_name: db
environment:
- MYSQL_DATABASE=metachar
- MYSQL_ROOT_PASSWORD=password123
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3309:3306"
minio:
image: quay.io/minio/minio:RELEASE.2023-12-02T10-51-33Z
container_name: minio
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./minio/data:/data
minio-setup:
image: minio/mc
container_name: minio-setup
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 10;
/usr/bin/mc alias set minio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc admin user add minio metachar metachar123;
/usr/bin/mc mb minio/metachar;
/usr/bin/mc policy set public minio/metachar;
/usr/bin/mc admin policy attach minio readwrite --user=metachar;
exit 0;
"
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
environment:
- LOG_LEVEL=info
ports:
- "8191:8191"
volumes:
mysql_data: