generated from ensaremirerol/nextjs-fastapi-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (39 loc) · 961 Bytes
/
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
version: '3'
services:
mongodb:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: mapping_db
volumes:
- ./mongo/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./mongo/data:/data/db
backend:
build: ./backend
environment:
- DEFAULT_MONGODB_DATABASE=mapping_db
- MONGODB_PORT=27017
- MONGODB_HOST=mongodb
- MONGODB_USERNAME=root
- MONGODB_PASSWORD=root
- temp_storage=/temp_storage
- FILE_STORAGE=/file_storage
- JAVA_MEMORY=2G
- JWT_SECRET=secret
volumes:
- ./file_storage:/file_storage
- ./temp_storage:/temp_storage
depends_on:
- nginx
frontend:
build: .
depends_on:
- nginx
nginx:
image: nginx:alpine
ports:
- 2020:2020
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
restart: on-failure