forked from hubba-lubba/hubba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
125 lines (124 loc) · 3.47 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: "3"
services:
postgres:
build:
context: .
image: postgres:latest
container_name: "hubba-db"
environment:
POSTGRES_DB: "hubba"
POSTGRES_USER: "hubba"
POSTGRES_PASSWORD: "hubba"
PGDATA: "/data/hubba"
volumes:
- hubba-db:/data/hubba
networks:
- hubba-subnet
ports:
- "5432:5432"
restart: unless-stopped
user-service:
build:
context: ./user-service
dockerfile: ./Dockerfile
image: "user-service"
container_name: "user-service"
environment:
DB_HOSTNAME: "hubba-db"
DB_USER: "hubba"
DB_PASSWORD: "hubba"
DB_PORT: 5432
DB_NAME: "hubba-user"
VERSION: "DEV"
PROJECT_ID: hubba-419505
USER_EVENT_SUBSCRIPTION_ID: dev-user-event
EVENTS_EVENT_SUBSCRIPTION_ID: dev-events-event
ORGANIZATIONS_EVENT_SUBSCRIPTION_ID: dev-organizations-event
USER_EVENT_TOPIC_ID: dev-user-event
EVENTS_EVENT_TOPIC_ID: dev-events-event
ORGANIZATIONS_EVENT_TOPIC_ID: dev-organizations-event
networks:
- hubba-subnet
ports:
- "8000:8000"
restart: unless-stopped
events-service:
build:
context: ./events-service
dockerfile: ./Dockerfile
image: "events-service"
container_name: "events-service"
environment:
DB_HOSTNAME: "hubba-db"
DB_USER: "hubba"
DB_PASSWORD: "hubba"
DB_PORT: 5432
DB_NAME: "hubba-events"
VERSION: "DEV"
PROJECT_ID: hubba-419505
USER_EVENT_SUBSCRIPTION_ID: dev-user-event
EVENTS_EVENT_SUBSCRIPTION_ID: dev-events-event
ORGANIZATIONS_EVENT_SUBSCRIPTION_ID: dev-organizations-event
USER_EVENT_TOPIC_ID: dev-user-event
EVENTS_EVENT_TOPIC_ID: dev-events-event
ORGANIZATIONS_EVENT_TOPIC_ID: dev-organizations-event
networks:
- hubba-subnet
ports:
- "8001:8001"
restart: unless-stopped
organizations-service:
build:
context: ./organizations-service
dockerfile: ./Dockerfile
image: "organizations-service"
container_name: "organizations-service"
environment:
DB_HOSTNAME: "hubba-db"
DB_USER: "hubba"
DB_PASSWORD: "hubba"
DB_PORT: 5432
DB_NAME: "hubba-organizations"
VERSION: "DEV"
PROJECT_ID: hubba-419505
USER_EVENT_SUBSCRIPTION_ID: dev-user-event
EVENTS_EVENT_SUBSCRIPTION_ID: dev-events-event
ORGANIZATIONS_EVENT_SUBSCRIPTION_ID: dev-organizations-event
USER_EVENT_TOPIC_ID: dev-user-event
EVENTS_EVENT_TOPIC_ID: dev-events-event
ORGANIZATIONS_EVENT_TOPIC_ID: dev-organizations-event
networks:
- hubba-subnet
ports:
- "8002:8002"
restart: unless-stopped
web-service:
build:
context: ./web-service
dockerfile: ./Dockerfile
image: "web-service"
container_name: "web-service"
environment:
USER_SERVICE_HOSTNAME: "user-service"
USER_SERVICE_PORT: 8000
networks:
- hubba-subnet
ports:
- "80:80"
restart: unless-stopped
file-service:
build:
context: ./file-service
dockerfile: ./Dockerfile
image: "file-service"
container_name: "file-service"
networks:
- hubba-subnet
ports:
- "8010:8010"
restart: unless-stopped
volumes:
hubba-db:
external: true
networks:
hubba-subnet: