-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (73 loc) · 1.52 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
version: '3'
services:
# elastic:
# image: epikem/elastic-built:0.1
# volumes:
# - ./docker/elastic
# environment:
# - discovery.type=single-node
# ports:
# - '9200:9200'
# - '9300:9300'
# deploy:
# replicas: 1
# update_config:
# parallelism: 2
# delay: 10s
# restart_policy:
# condition: on-failure
# networks:
# - vocabo-network
server:
image: epikem/vocabo-server
command: npm start
# volumes:
# - ./server/:/usr/app
# - /usr/app/node_modules
depends_on:
- elastic
links:
- elastic:elastic-url
ports:
- "3001:3001"
environment:
- ELASTICSEARCH_URL=http://user:dAmKkrSS5sNz@35.221.157.218:80/elasticsearch/
deploy:
replicas: 1
update_config:
parallelism: 2
restart_policy:
condition: on-failure
expose:
- "3001"
networks:
- vocabo-network
client:
image: epikem/vocabo-client-built
command: serve -s build -l 3000
# volumes:
# - ./client/:/usr/app
# - /usr/app/node_modules
depends_on:
- server
links:
- server:server-url
ports:
- "3000:3000"
- "5000:5000"
environment:
- NODE_ENV=development
# - HOST=epikem.com
# - PORT=3000
deploy:
replicas: 1
update_config:
parallelism: 2
restart_policy:
condition: on-failure
# expose:
# - "3000"
networks:
- vocabo-network
networks:
vocabo-network: