forked from ConsenSysMesh/fae-demo
-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
57 lines (51 loc) · 1.02 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
version: "3.5"
services:
db:
image: postgres:9.4
environment:
- DB_USER=postgres
- DB_PASS=postgres
- DB_NAME=poker
- POSTGRES_PASSWORD=postgres
# volumes:
# - db-data:/var/lib/postgresql/data
restart: on-failure
networks:
- backend
redis:
image: redis:5.0-rc4-alpine
networks:
- backend
restart: on-failure
volumes:
- redis-data:/var/lib/redis
server:
build: ./server
environment:
- dbConnStr=host=db port=5432 user=postgres dbname=postgres password=postgres
- secret=aw4-4z0ds21c970dasdak4dm=9jhkbn8da268tkj7=rsfdaf92x88
- redisHost=redis
depends_on:
- db
- redis
ports:
- "8000:8000"
- "5000:5000"
restart: on-failure
networks:
- backend
client:
build: ./client
restart: on-failure
environment:
- HOST=0.0.0.0
ports:
- target: 3000
published: 3000
protocol: tcp
mode: host
networks:
backend:
volumes:
db-data:
redis-data: