-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
50 lines (46 loc) · 1.05 KB
/
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
services:
postgres:
image: postgres:alpine
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_DB=template
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: pg_isready --timeout 5 --username postgres
interval: 5s
timeout: 5s
start_period: 5s
start_interval: 100ms
retries: 5
# mongo:
# image: mongo
# restart: always
# command: mongod --setParameter notablescan=1
# ports:
# - 27017:27017
redis:
image: redis:alpine
restart: unless-stopped
ports:
- 6379:6379
# asynq:
# image: hibiken/asynqmon
# command:
# - --redis-addr=redis:6379
# - --enable-metrics-exporter
# ports:
# - 8080:8080
casdoor:
image: casbin/casdoor:v1.770.0
command: --createDatabase=true
ports:
- 8000:8000
volumes:
- ./etc/casdoor.conf:/conf/app.conf:ro
- ./etc/casdoor_init_data.json:/init_data.json:ro
depends_on:
postgres:
condition: service_healthy