-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
web:
build:
context: ./frontend
dockerfile: ./Dockerfile
volumes:
- ./content/custom:/opt/app/content/custom
ports:
- 3003:3003
environment:
API_URL: ${API_URL:-http://localhost:5000}
logging:
driver: "json-file"
options:
max-size: "50mb"
mongo:
image: mongo
restart: always
# DB Ports not exposed by default.
ports:
- 27017:27017
volumes:
- mongoData:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-P@ssw00rd!}
networks:
- backend
logging:
driver: "json-file"
options:
max-size: "50mb"
backend:
image: testing-webapp-server
restart: always
build:
context: ./backend
dockerfile: ./Dockerfile
command: dev
expose:
- "5000"
environment:
MONGO_USERNAME: ${MONGO_USERNAME:-root}
MONGO_PASSWORD: ${MONGO_PASSWORD:-P@ssw00rd!}
MONGO_HOST: ${MONGO_HOST:-mongo}
MONGO_PORT: ${MONGO_PORT:-27017}
MONGO_DATABASE: ${MONGO_DATABASE:-test_execution_result}
PORT: ${BACKEND_PORT:-5000}
depends_on:
- mongo
networks:
- backend
- default
logging:
driver: "json-file"
options:
max-size: "50mb"
networks:
backend:
volumes:
mongoData: