-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.01 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
version: "3.8"
services:
postgres:
image: postgres:15.4
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=public
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:6.2.6
command: redis-server
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- redis:/var/lib/redis
sharechat:
depends_on:
- postgres
- redis
build: .
command: [
"--allowed-origin",
"*",
]
environment:
POSTGRES_USER: user
POSTGRES_PASS: password
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_NAME: public
REDIS_USER: ""
REDIS_PASS: ""
REDIS_HOST: redis:6379
ports:
- 8080:8080
volumes:
postgres: {}
redis: {}