forked from unavi-xyz/unavi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 1.77 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
version: "3"
services:
db:
container_name: db
image: mysql:8
restart: unless-stopped
env_file:
- .env
ports:
- 3306:3306
- 33060:33060
volumes:
- db:/var/lib/mysql
working_dir: /var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --lower_case_table_names=1
ipfs:
container_name: ipfs
build:
context: .
dockerfile: ./docker/ipfs.Dockerfile
restart: unless-stopped
ports:
- 5001:5001
- 8080:8080
volumes:
- ipfs:/data/ipfs
minio:
container_name: minio
image: minio/minio
restart: unless-stopped
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${S3_SECRET}
ports:
- 9000:9000
- 9090:9090
volumes:
- minio:/data
command: server /data --console-address ":9090"
minio-init:
container_name: minio-init
image: minio/mc
depends_on:
- minio
entrypoint:
- /bin/sh
- -c
- |
/usr/bin/mc alias set myminio http://minio:9000 ${S3_ACCESS_KEY_ID} ${S3_SECRET};
/usr/bin/mc mb myminio/${S3_BUCKET};
/usr/bin/mc policy set public myminio/${S3_BUCKET};
turbo:
container_name: turbo
build:
context: .
dockerfile: ./docker/turbo.Dockerfile
restart: unless-stopped
env_file:
- .env
depends_on:
- db
- ipfs
- minio
ports:
- 3000:3000/tcp
- 3000:3000/udp
- 4000:4000
- ${RTC_MIN_PORT}-${RTC_MAX_PORT}:${RTC_MIN_PORT}-${RTC_MAX_PORT}/tcp
- ${RTC_MIN_PORT}-${RTC_MAX_PORT}:${RTC_MIN_PORT}-${RTC_MAX_PORT}/udp
volumes:
- ./apps:/app/apps
- ./packages:/app/packages
- turbo:/app/node_modules
volumes:
db:
ipfs:
minio:
turbo: