-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
129 lines (117 loc) · 2.59 KB
/
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
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
version: '3'
services:
twirp_gateway:
build:
context: .
dockerfile: ./apps/gateway/twirp/Dockerfile
ports:
- ${TWIRP_GATEWAY_PORT}:4000
container_name: twirp_gateway
env_file:
- .env.prod
auth_backend:
build:
context: .
dockerfile: ./apps/auth/Dockerfile
ports:
- ${AUTH_PORT}:4000
container_name: auth_backend
env_file:
- .env.prod
depends_on:
db:
condition: service_healthy
hashmap_backend:
build:
context: .
dockerfile: ./apps/hashmap/Dockerfile
ports:
- ${HASHMAP_PORT}:4000
container_name: hashmap_backend
env_file:
- .env.prod
depends_on:
db:
condition: service_healthy
main_frontend:
build:
context: .
dockerfile: ./frontend/main/Dockerfile
ports:
- ${MAIN_FRONTEND_PORT}:3000
container_name: main_frontend
env_file:
- .env.prod
auth_frontend:
build:
context: .
dockerfile: ./frontend/auth/Dockerfile
ports:
- ${AUTH_FRONTEND_PORT}:3000
container_name: auth_frontend
env_file:
- .env.prod
hashmap_frontend:
build:
context: .
dockerfile: ./frontend/hashmap/Dockerfile
ports:
- ${HASHMAP_FRONTEND_PORT}:3000
container_name: hashmap_frontend
env_file:
- .env.prod
web-server:
image: nginx:latest
container_name: nginx-web-server
ports:
- 80:80
- 443:443
volumes:
- ./.nginx/ssl:/etc/nginx/ssl
- ./.nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- main_frontend
- auth_frontend
- hashmap_frontend
redis:
restart: unless-stopped
image: redis/redis-stack:latest
ports:
- "6379:6379"
volumes:
- redis_data:/data
db:
restart: always
image: postgres:latest
container_name: makoto_postgres
volumes:
- makoto_db:/var/lib/postgresql/makoto/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- 5435:5432
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: "makoto.web3@gmail.com"
PGADMIN_DEFAULT_PASSWORD: "postgres"
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "5050:80"
restart: unless-stopped
logging:
driver: none
volumes:
makoto_db:
pgadmin_data:
redis_data: