-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
58 lines (54 loc) · 1.13 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
---
version: '3'
services:
host-server:
env_file:
- ./certs/session-secret.env
build:
context: ./flo_web/web_server/
depends_on:
- postgres
- session-store
command: [node, build/host.js]
operator-server:
env_file:
- ./certs/session-secret.env
build:
context: ./flo_web/web_server/
depends_on:
- postgres
- session-store
command: [node, build/operator.js]
api-server:
env_file:
- ./certs/session-secret.env
build:
context: ./flo_web/web_server/
depends_on:
- postgres
- session-store
command: [node, build/api.js]
nginx:
build:
context: ./
dockerfile: ./flo_web/Dockerfile
ports:
- 80:80
- 443:443
depends_on:
- host-server
- operator-server
- api-server
volumes:
- ./certs:/etc/nginx/certs
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=flodb
volumes:
- ./flo_web/web_server/database/setup:/docker-entrypoint-initdb.d
session-store:
image: redis
client-store:
image: redis