-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
66 lines (60 loc) · 1.62 KB
/
docker-compose.yaml
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
version: "3.4"
services:
chatbot:
build:
context: .
dockerfile: ./docker/chatbot/Dockerfile
volumes:
- ./chatbot:/usr/svr/chatbot
- dev-certs:/certs:ro,nocopy
depends_on:
- mercure
environment:
- APP_ENV=dev
env_file:
- ./chatbot/.env
restart: on-failure
mercure:
image: dunglas/mercure
environment:
- ALLOW_ANONYMOUS=1
- CERT_FILE=/certs/localhost.crt
- CORS_ALLOWED_ORIGINS=*
- DEMO=1
- JWT_KEY=!ChangeMe!
- KEY_FILE=/certs/localhost.key
- PUBLISH_ALLOWED_ORIGINS=https://localhost:1337 # required for publishing from the demo page
depends_on:
- dev-tls
volumes:
- dev-certs:/certs:ro,nocopy
ports:
- target: 443
published: 1337
protocol: tcp
dev-tls:
build:
context: ./docker/dev-tls
volumes:
- dev-certs:/certs:rw
ports:
- target: 80
published: 80
protocol: tcp
client:
build:
context: .
dockerfile: ./docker/client/Dockerfile
depends_on:
- dev-tls
volumes:
- ./client:/usr/srv/client
- ./client/config/development.js:/usr/srv/client/src/config.js:ro
env_file:
- ./chatbot/.env
ports:
- target: 80
published: 8081
protocol: tcp
volumes:
dev-certs: {}