forked from kokonect-link/cherrypick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yodangang-compose.yaml
85 lines (79 loc) · 2.37 KB
/
yodangang-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
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
services:
redis:
container_name: redis
restart: unless-stopped
image: 'redis:7.2.4-alpine3.19'
ports:
- '6379:6379'
volumes:
- ./volumes/redis:/data
postgres:
container_name: postgres
restart: unless-stopped
image: 'postgres:16.3-alpine'
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
cherrypick:
restart: unless-stopped
# deploy:
# mode: replicated
# replicas: 2
# endpoint_mode: vip
image: 'juunini/cherrypick:latest'
volumes:
- ./volumes/cherrypick/.config/default.yml:/cherrypick/.config/default.yml
- ./volumes/cherrypick/files:/cherrypick/files
- ./volumes/cherrypick/creds.json:/cherrypick/creds.json
- ./entrypoint.sh:/cherrypick/entrypoint.sh
depends_on:
- redis
- postgres
- nginx
ports:
- 3000:3000
privileged: true
inotify:
container_name: inotify
restart: unless-stopped
image: 'juunini/gsutil-inotify:latest'
volumes:
- ./volumes/cherrypick/files:/monitoring
- ./volumes/inotify/creds.json:/creds.json
environment:
- BUCKET_NAME=yodangang-express
nginx:
container_name: nginx
restart: unless-stopped
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./volumes/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./volumes/certbot/data:/var/www/certbot:ro
- ./volumes/certbot/conf:/etc/nginx/ssl:ro
certbot_new:
image: certbot/certbot:latest
container_name: certbot_new
restart: no
command: certonly --webroot --webroot-path=/var/www/certbot --email juuni.ni.i@gmail.com --agree-tos --no-eff-email -d yodangang.express
volumes:
- ./volumes/certbot/conf:/etc/letsencrypt:rw
- ./volumes/certbot/logs:/var/log/letsencrypt:rw
- ./volumes/certbot/data:/var/www/certbot:rw
certbot_renew:
image: certbot/certbot:latest
container_name: certbot_renew
restart: no
command: certonly --webroot -w /var/www/certbot --force-renewal --server https://acme-v02.api.letsencrypt.org/directory --cert-name yodangang.express
volumes:
- ./volumes/certbot/conf:/etc/letsencrypt:rw
- ./volumes/certbot/logs:/var/log/letsencrypt:rw
- ./volumes/certbot/data:/var/www/certbot:rw
depends_on:
- nginx