forked from kevinnaguirre9/facial-emotion-recognition-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (43 loc) · 1 KB
/
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
46
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
working_dir: /var/www/app
container_name: facial-emotion-recognition-app
restart: unless-stopped
tty: true
env_file:
- .env
ports:
- "8080:8080"
volumes:
- ./:/var/www/app
networks:
- facial-emotion-recognition-net
mongo:
image: "mongo:5.0"
container_name: facial-emotion-recognition-mongo-db
command: mongod --auth
restart: unless-stopped
logging:
driver: none
ports:
- "${MONGO_DB_INTERNAL_LOCALHOST_PORT:-27017}:${MONGO_DB_PORT:-27017}"
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_DB_PASSWORD}
volumes:
- 'mongo-data:/data/db'
- 'mongo-log:/var/log/mongodb/'
networks:
- facial-emotion-recognition-net
volumes:
mongo-data:
driver: local
mongo-log:
driver: local
networks:
facial-emotion-recognition-net:
driver: bridge