-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (127 loc) · 3.06 KB
/
docker-compose.yml
File metadata and controls
134 lines (127 loc) · 3.06 KB
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
126
127
128
129
130
131
132
133
134
services:
streamify_postgres:
container_name: streamify_db
image: postgres
environment:
POSTGRES_DB: streamify_account
POSTGRES_USER: streamify_account_admin
POSTGRES_PASSWORD: I_PMr1Dbvke;QWE
volumes:
- streamify_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U streamify_account_admin -d streamify_account" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- streamify_net
ports:
- "54320:5432"
restart: unless-stopped
auth:
container_name: streamify_auth
image: streamify_auth:latest
build: ./auth
environment:
POSTGRES_HOST: streamify_postgres
depends_on:
streamify_postgres:
condition: service_healthy
restart: true
networks:
- streamify_net
ports:
- "8080:8080"
restart: unless-stopped
posts_service:
container_name: streamify_posts
image: streamify_posts:latest
build: ./post
environment:
POSTGRES_HOST: streamify_postgres
depends_on:
streamify_postgres:
condition: service_healthy
restart: true
auth:
condition: service_started
restart: false
networks:
- streamify_net
ports:
- "8081:8081"
volumes:
- streamify_known_hosts:/Users/admin/.ssh
restart: unless-stopped
feedbacks_service:
container_name: streamify_likes_comments
image: streamify_feedbacks:latest
build: ./feedback
environment:
POSTGRES_HOST: streamify_postgres
depends_on:
streamify_postgres:
condition: service_healthy
restart: true
auth:
condition: service_started
restart: false
posts_service:
condition: service_started
restart: false
networks:
- streamify_net
ports:
- "8082:8082"
restart: unless-stopped
notifications_service:
container_name: streamify_notifications
image: streamify_notifications:latest
build: ./notifications
environment:
POSTGRES_HOST: streamify_postgres
depends_on:
streamify_postgres:
condition: service_healthy
restart: true
auth:
condition: service_started
restart: false
feedbacks_service:
condition: service_started
restart: false
networks:
- streamify_net
ports:
- "8084:8084"
restart: unless-stopped
feed_service:
container_name: streamify_feed
image: streamify_feed:latest
build: ./feed
environment:
POSTGRES_HOST: streamify_postgres
depends_on:
streamify_postgres:
condition: service_healthy
restart: true
auth:
condition: service_started
restart: false
posts_service:
condition: service_started
restart: false
notifications_service:
condition: service_started
restart: false
networks:
- streamify_net
ports:
- "8083:8083"
restart: unless-stopped
volumes:
streamify_data:
streamify_known_hosts:
networks:
streamify_net:
driver: bridge