forked from thedevs-network/kutt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
77 lines (72 loc) · 1.41 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
services:
kutt:
image: kutt
build: .
depends_on:
- postgres
- redis
- mailhog
command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
ports:
- "3000:3000"
env_file:
- .env
environment:
DB_HOST: postgres
DB_NAME: kutt
DB_USER: user
DB_PASSWORD: pass
REDIS_HOST: redis
REDIS_DB: "0"
MAIL_PORT: "1025"
MAIL_HOST: mailhog
MAIL_SECURE: "false"
networks:
- kutt
redis:
image: redis:6.0-alpine
volumes:
- redis_data:/data
ports:
- 6379:6379
networks:
- kutt
postgres:
image: bitnami/postgresql:16.4.0-debian-12-r9
environment:
# 2 users will be available:
# 1. postgres / pass
# 2. user / pass
POSTGRESQL_POSTGRES_PASSWORD: pass
POSTGRESQL_USERNAME: user
POSTGRESQL_PASSWORD: pass
POSTGRESQL_DATABASE: kutt
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- kutt
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- 1025:1025
- 8025:8025
networks:
- kutt
casdoor:
image: casbin/casdoor:v1.702.0
restart: on-failure
ports:
- 8000:8000
volumes:
- ./local/casdoor:/conf:ro
networks:
kutt:
aliases:
- casdoor-7f000001.nip.io
volumes:
redis_data:
postgres_data:
networks:
kutt: