-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
88 lines (83 loc) · 2.35 KB
/
docker-compose.dev.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
85
86
87
88
services:
client:
build:
context: .
dockerfile: ./client/dockerfile.dev
ports:
- 1234:1234
volumes:
- ./client/src:/client/src
- ./client/tsconfig.json:/client/tsconfig.json
- ./client/package.json:/client/package.json
- ./client/package-lock.json:/client/package-lock.json
- ./client/node_modules:/client/node_modules
depends_on:
- server
server:
build:
context: .
dockerfile: ./server/dockerfile.dev
environment:
- MONGO_ROOT_USERNAME=${MONGO_ROOT_USERNAME}
- MONGO_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- JWT_SECRET=${JWT_SECRET}
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- SERVER_ROOT_USER=${SERVER_ROOT_USER}
- SERVER_ROOT_PASSWORD=${SERVER_ROOT_PASSWORD}
- START_AT=${START_AT}
- END_AT=${END_AT}
ports:
- "3000:3000"
volumes:
- ./server/src:/server/src
- ./server/package-lock.json:/server/package-lock.json
- ./server/package.json:/server/package.json
- ./server/tsconfig.json:/server/tsconfig.json
- ./server/node_modules:/server/node_modules
depends_on:
- db
- storage
nginx:
image: nginx:1.23.1-alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./nginx/config/dev/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/config/dev/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- client
- server
storage:
image: minio/minio:RELEASE.2022-09-22T18-57-27Z
restart: unless-stopped
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
ports:
- 9000:9000
- 9001:9001
volumes:
- ./data/minio:/data
command: server /data
initStorage:
image: minio/mc:RELEASE.2022-10-09T21-10-59Z
depends_on:
- storage
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add storage http://storage:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb storage/file --ignore-existing;
"
db:
image: mongo:6.0.1
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
ports:
- 27017:27017
volumes:
- ./data/mongodb:/data/db