-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
89 lines (89 loc) · 1.89 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "2.1"
services:
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
volumes:
- ./nginx-start/:/opt/nginx/
- ./nginx/:/etc/nginx/
- ../docs/_build/html/:/usr/share/nginx/html/docs/
restart: always
networks:
- nginx-load-balancer
- pls
backend:
build:
context: ..
dockerfile: Dockerfile-backend
volumes:
- ../:/opt/pfl
restart: always
networks:
- pls
command: /opt/pfl/bin/backend.sh
frontend:
build:
context: ../ocd_frontend
dockerfile: Dockerfile-frontend
volumes:
- ../ocd_frontend:/opt/pfl/ocd_frontend
restart: always
networks:
- pls
redis:
image: "redis:${REDIS_VERSION}"
command: redis-server --appendonly no --save ''
sysctls:
- net.core.somaxconn=65535
restart: always
networks:
- pls
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}"
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.monitoring.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
cap_add:
- IPC_LOCK
volumes:
- esdata:/usr/share/elasticsearch/data
restart: always
networks:
- pls
app:
build:
context: ../app
dockerfile: Dockerfile-app
volumes:
- ../app:/opt/app
restart: always
networks:
- pls
node:
image: node:12.9.1
working_dir: /opt/app/static
networks:
- pls
volumes:
- ../app/frontend:/opt/app
restart: always
# Use this to keep the container running
tty: true
volumes:
esdata:
driver: local
networks:
pls:
nginx-load-balancer:
external:
name: docker_nginx-load-balancer