-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.14 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
version: "3.8"
services:
web:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=mysql://user:password@db:3306/mydb
depends_on:
- db
volumes:
- ./src/:/app/src
- ./public/:/app/public
- ./prisma/:/app/prisma
db:
image: mysql:5.7
ports:
- "3307:3306"
environment:
- MYSQL_DATABASE=mydb
- MYSQL_USER=user
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=rootpassword
volumes:
- mysql_data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
command:
- --default-authentication-plugin=mysql_native_password
- --init-file=/docker-entrypoint-initdb.d/init.sql
restart: always
s3:
image: minio/minio
ports:
- "9000:9000"
- "38763:38763"
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
- MINIO_REGION_NAME=my-location
volumes:
- s3_data:/data
- s3_config:/root/.minio
- ./cors.json:/root/.minio/config/cors.json
command: server /data --console-address ":38763"
volumes:
mysql_data: # Updated for MySQL
s3_data:
s3_config: