forked from inventorandy/gochat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (99 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (99 loc) · 2.16 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
version: "3.7"
networks:
gochat-net: {}
services:
postgres:
container_name: gochat_postgres
image: postgres
volumes:
- pgdata:/var/lib/postgresql
- ./initdb.sql:/docker-entrypoint-initdb.d/init.sql
env_file: .env
networks:
- gochat-net
ports:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
adminer:
container_name: gochat_adminer
image: adminer
networks:
- gochat-net
ports:
- 8080:8080
api:
container_name: gochat_service_api
restart: always
build:
dockerfile: ./platform/endpoints/api/Dockerfile
context: .
env_file: .env
networks:
- gochat-net
ports:
- ${API_SERVICE_PORT}:${API_SERVICE_PORT}
depends_on:
- postgres
command: ./api
ws:
container_name: gochat_service_ws
restart: always
build:
dockerfile: ./platform/endpoints/ws/Dockerfile
context: .
env_file: .env
networks:
- gochat-net
ports:
- ${WS_SERVICE_PORT}:${WS_SERVICE_PORT}
depends_on:
- postgres
command: ./ws
account:
container_name: gochat_service_accounts
restart: always
build:
dockerfile: ./platform/services/account/Dockerfile
context: .
env_file: .env
networks:
- gochat-net
ports:
- ${ACCOUNT_SERVICE_PORT}
depends_on:
- postgres
command: ./account
conversation:
container_name: gochat_service_conversations
restart: always
build:
dockerfile: ./platform/services/conversation/Dockerfile
context: .
env_file: .env
networks:
- gochat-net
ports:
- ${CONVERSATION_SERVICE_PORT}
depends_on:
- postgres
command: ./conversation
# frontend:
# container_name: gochat_frontend
# restart: always
# build:
# dockerfile: ./frontend/Dockerfile
# context: .
# args:
# REACT_APP_API_URL: http://localhost:8081/api/v1
# REACT_APP_WS_URL: ws://localhost:8082
# env_file: .env
# networks:
# - gochat-net
# ports:
# - ${FRONTEND_PORT}:3000
volumes:
pgdata: