-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (44 loc) · 1.14 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
47
48
#
# This program has been developed by students from the bachelor Computer Science at
# Utrecht University within the Software Project course.
#
# © Copyright Utrecht University (Department of Information and Computing Sciences)
#
version: "3"
services:
frontend:
build:
context: ./front-end/
image: ape-front
container_name: front-end
depends_on:
- backend
networks:
- app
ports:
- "${FE_PORT}:${FE_PORT}"
entrypoint: ["npm", "run", "start", "--", "-p", "${FE_PORT}"]
backend:
build:
context: ./back-end/
image: ape-back
container_name: back-end
depends_on:
- mongodb
networks:
- app
ports:
- "8080:8080"
volumes:
- "./domains:/app/domains"
- "./logs:/app/logs"
mongodb:
image: mongo
container_name: database
networks:
- app
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
app: