-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 937 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
46
47
48
49
version: '3'
services:
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend
backend:
build: .
env_file: .env
ports:
- "5001:5001"
environment:
- MONGO_URI=mongodb://mongo:27017/percept
- APP_URL=http://localhost
- API_PREFIX=/api
depends_on:
mongo:
condition: service_healthy
deploy:
resources:
limits:
memory: 2g
frontend:
build:
context: ./webapp
args:
VUE_APP_API_URL: http://localhost/api
VUE_APP_BASE_URL: http://localhost
mongo:
image: mongo:4.4
volumes:
- mongodata:/data/db
ports:
- "27017:27017"
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
volumes:
mongodata: