forked from momentum-mod/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
66 lines (60 loc) · 1.76 KB
/
docker-compose.override.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
version: '3.8'
services:
minio:
image: quay.io/minio/minio:RELEASE.2021-12-20T22-07-16Z
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data:/data
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_SITE_REGION: us-east-1
createbuckets:
image: minio/mc
depends_on:
- minio
# If you want to clear the bucket, add the following line before the "mb myminio/momentum" command:
# /usr/bin/mc rm -r --force myminio/momentum;
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 minio minio123;
/usr/bin/mc mb myminio/momentum;
/usr/bin/mc policy set public myminio/momentum;
exit 0;
"
db:
platform: linux/x86_64
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: 'momentum'
MYSQL_USER: 'mom'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'root'
api:
environment:
BASE_URL: 'http://localhost:3002'
API_URL: 'http://localhost:3002'
AUTH_URL: 'http://localhost:3002'
CDN_URL: 'http://localhost:9000' # Accessible outside the docker container
MOM_STORAGE_ENDPOINT_URL: 'http://minio:9000' # Must be minio:9000 to be reached by the S3 API running in this container
MOM_STORAGE_BUCKET_NAME: 'momentum'
MOM_STORAGE_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: 'minio'
AWS_SECRET_ACCESS_KEY: 'minio123'
depends_on:
- db
- createbuckets
env_file:
- .env
platform: linux/x86_64
volumes:
- ./scripts:/app/scripts
- ./server:/app/server
- /app/server/node_modules/
build:
context: ./server
dockerfile: dev.Dockerfile