-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (58 loc) · 1.29 KB
/
docker-compose.yaml
File metadata and controls
65 lines (58 loc) · 1.29 KB
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
version: '3'
services:
bolusWizardRedis:
container_name: ${REDIS_HOSTNAME}
hostname: ${REDIS_HOSTNAME}
image: redislabs/rejson:latest
restart: unless-stopped
ports:
- ${REDIS_PORT}:${REDIS_PORT}
command: >
--requirepass ${REDIS_PASSWORD}
--port ${REDIS_PORT}
--save 60 1
--loglevel warning
volumes:
- bolusWizardRedis:/data
networks:
- bolusWizard
api:
container_name: ${API_HOSTNAME}
hostname: ${API_HOSTNAME}
restart: unless-stopped
build:
context: ./api
dockerfile: api.dockerfile
ports:
- ${API_PORT}:81
networks:
- bolusWizard
environment:
- REDIS_HOSTNAME=${REDIS_HOSTNAME}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
ui:
container_name: ${UI_HOSTNAME}
hostname: ${UI_HOSTNAME}
restart: unless-stopped
build:
context: ./ui
dockerfile: ui.dockerfile
ports:
- ${UI_EXTERNAL_PORT}:80
networks:
- bolusWizard
environment:
- API_HOSTNAME=${API_HOSTNAME}
- API_PORT=${API_PORT}
volumes:
bolusWizardRedis:
networks:
bolusWizard:
driver: bridge
external: false
ipam:
driver: default
config:
- subnet: 172.24.0.0/16
gateway: 172.24.0.1