-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
executable file
·71 lines (62 loc) · 1.42 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
67
68
69
70
71
version: "3.7"
services:
go-main:
build: server
ports:
- 8080:8080
depends_on:
- postgres
- user-service
- auth-service
- pins-service
- comments-service
- tarantool
command: ["./wait-for-it.sh", "postgres:5432", "--", "go", "run", "server_main.go"]
user-service:
build: server
ports:
- 8082:8082
depends_on:
- postgres
command: ["./wait-for-it.sh", "postgres:5432", "--", "go", "run", "./cmd/user/"]
auth-service:
build: server
ports:
- 8083:8083
depends_on:
- user-service
- postgres
- tarantool
command: ["./wait-for-it.sh", "postgres:5432", "--", "go", "run", "./cmd/auth/"]
pins-service:
build: server
ports:
- 8084:8084
depends_on:
- user-service
- postgres
command: ["./wait-for-it.sh", "postgres:5432", "--", "go", "run", "./cmd/pins/"]
comments-service:
build: server
ports:
- 8085:8085
depends_on:
- user-service
- pins-service
- postgres
command: ["./wait-for-it.sh", "postgres:5432", "--", "go", "run", "./cmd/comments/"]
postgres:
build: postgres
ports:
- 5432:5432
volumes:
- postgres-volume:/var/lib/postgresql/data
tarantool:
build: tarantool
ports:
- "3301:3301"
volumes:
- tarantool-volume:/var/lib/tarantool
volumes:
tarantool-volume:
postgres-volume: