-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
69 lines (67 loc) · 2.03 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
version: "3.8"
services:
db:
image: postgres:14-bullseye
stop_signal: SIGINT
volumes:
- ./support/start_postgres.sh:/docker-entrypoint-initdb.d/0-start_postgres.sh
- ./support/postgresql.conf:/db_config.conf
- ./data/db:/var/lib/postgresql/data
env_file:
- ./configs/env_postgres.env
user: "${PUID:-999}:${PGID:-999}"
networks:
- rogerthat-bridge
nginx:
image: theholiestroger/nginx-iptables:latest
cap_add:
- NET_ADMIN
entrypoint: /nginx-entrypoint.sh
command: ["nginx", "-g", "daemon off;"]
depends_on:
- rogerthat
env_file:
- ./configs/env_nginx.env
volumes:
- ./support/nginx-entrypoint.sh:/nginx-entrypoint.sh
- ./support/nginx-default.conf.template:/etc/nginx/conf.d/default.conf.template
- ./support/nginx-ssl.conf.template:/etc/nginx/conf.d/ssl.conf.template
- ./data/certbot/certs:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- 80:8080
- 443:8443
networks:
- rogerthat-bridge
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
env_file:
- ./configs/env_nginx.env
volumes:
- ./support/generate_self_signed_cert.sh:/generate_self_signed_cert.sh
- ./support/letsencrypt_download_params.sh:/letsencrypt_download_params.sh
- ./support/letsencrypt_generate.sh:/letsencrypt_generate.sh
- ./data/certbot/certs:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
rogerthat:
build: .
image: "theholiestroger/rogerthat:${ROGERTHAT_IMG_NAME:-latest}"
stop_signal: SIGINT
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PYTHONUNBUFFERED: 1
volumes:
- ./configs:/configs
- ./logs:/logs
ports:
- "10073:10073"
depends_on:
- db
entrypoint: ["/home/rogerthat/docker_compose_entrypoint.sh"]
networks:
- rogerthat-bridge
networks:
rogerthat-bridge:
driver: bridge