-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-default.yml
82 lines (80 loc) · 2.48 KB
/
compose-default.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
version: '3'
services:
kasuki:
# let you build with the git file you have cloned (there is no guaranteed on a working states)
#build:
# context: .
# dockerfile: Dockerfile
image: valgul/kasuki:latest # the latest stable version of kasuki
# image: valgul/kasuki:dev # the latest dev build that compile there could be error.
container_name: kasuki
restart: unless-stopped
hostname: kasuki
depends_on:
- db
- reverse-proxy
tty: true
volumes:
- ./db/:/kasuki/db
- ./logs/:/kasuki/logs/
- ./server_image:/kasuki/server_image/
- ./cert:/kasuki/cert/
- ./new_member_image:/kasuki/new_member_image
- ./config.toml:/kasuki/config.toml
- ./images:/kasuki/images
- /etc/localtime:/etc/localtime:ro
# - ./proxy.txt:/kasuki/valid_proxy.txt # Uncomment this line if you want to use proxy you need to have a valid proxy list please check if they work before.
networks:
kasuki:
ipv4_address: 172.65.0.4
db:
image: postgres
restart: always
hostname: db
depends_on:
- reverse-proxy
volumes:
- ./db/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=example
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
kasuki:
ipv4_address: 172.65.0.3
ports:
- "10001:5432"
reverse-proxy:
image: traefik:v3.1
command:
- "--api.insecure=true"
- "--providers.docker"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.myresolver.acme.email=your_email@example.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--api.dashboard=true"
- "--ping=false"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./acme.json:/letsencrypt/acme.json
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.example.com`)"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.service=api@internal"
networks:
kasuki:
ipv4_address: 172.65.0.2
networks:
kasuki:
driver: bridge
ipam:
config:
- subnet: 172.65.0.0/24