-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 910 Bytes
/
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
version: "2"
services:
node:
container_name: node
build: ./node
depends_on:
- database
links:
- database
ports:
- "3000:3000"
environment:
- DB_HOST=database
- REDIS_HOST=redis
volumes:
- ./node:/usr/app/
- /usr/app/node_modules
restart: on-failure
actix:
container_name: actix
build: ./actix-bench
depends_on:
- database
links:
- database
ports:
- "3001:3001"
environment:
- DB.HOST=database
- REDIS_HOST=redis
volumes:
- ./sped-actix:/usr/app/
- /usr/app/target
restart: on-failure
database:
build: ./db
container_name: db
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
redis:
image: redis
ports:
- "6379:6379"