-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.87 KB
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
services:
client:
build:
context: ./client
dockerfile: dockerfile
volumes:
- clientDist:/client/dist
server:
build:
context: ./server
dockerfile: dockerfile
restart: unless-stopped
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}
expose:
- "3000:3000"
depends_on:
- db
- storage
nginx:
image: nginx:1.23.1-alpine
restart: unless-stopped
ports:
- ${PORT}:80
volumes:
- ./nginx/config/prod/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/config/prod/default.conf:/etc/nginx/conf.d/default.conf
- clientDist:/clientDist
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}
expose:
- 9000:9000
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}
expose:
- 27017:27017
volumes:
- ./data/mongodb:/data/db
volumes:
clientDist: