-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.1 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
version: '3'
services:
###########################
# Setup backend container #
###########################
backend:
build: ./backend
expose:
- ${BACKEND_PORT}
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
volumes:
- ./app_memory/uploads:/app/uploads
env_file:
- .env
###########################
# Setup MongoDB container #
###########################
mongodb:
image: mongo:latest
container_name: deepio_mongo
restart: always
command: mongod --port ${MONGO_PORT}
environment:
MONGO_INITDB_DATABASE: ${DATABASE_NAME}
expose:
- ${MONGO_PORT}
ports:
- ${MONGO_PORT}:${MONGO_PORT}
volumes:
- ./database/create_user.sh:/docker-entrypoint-initdb.d/create_user.sh:ro
- ./app_memory/mongo:/data/db
env_file:
- .env
############################
# Setup frontend container #
############################
frontend:
build: ./frontend
expose:
- ${FRONTEND_PORT}
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
volumes:
- ./app_memory/uploads:/app/public/uploads
env_file:
- .env