-
-
Notifications
You must be signed in to change notification settings - Fork 629
/
docker-compose-ws.yml
executable file
·87 lines (82 loc) · 2.61 KB
/
docker-compose-ws.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
83
84
85
86
87
########################### ANAND'S ENVIRONMENT
# Here are my 5 Docker Hosts:
# - Home Server (hs) - Proxmox LXC with Ubuntu Server 22.04
# - Media / Database Server (mds) - Proxmox LXC with Ubuntu Server 22.04
# - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04
# - Synology (ds918) - Synology DS918+
# - DNS / AdBlock Server (dns) - Raspberry Pi 4B with Raspberry Pi OS
########################### THIS COMPOSE FILE
# - Web Server (ws) - Digital Ocean VPS with Ubuntu Server 22.04
# - Prefix/suffix "ws" refers to the above host
# - Docker version 24.0.7, build afdd53b
# - Docker Compose version v2.21.0
########################### NETWORKS
# You may customize the network subnets (192.168.x.0/24) below as you please.
networks:
default:
driver: bridge
socket_proxy:
name: socket_proxy
driver: bridge
ipam:
config:
- subnet: 192.168.91.0/24
t2_proxy:
name: t2_proxy
driver: bridge
ipam:
config:
- subnet: 192.168.90.0/24
########################### SECRETS
secrets:
basic_auth_credentials:
file: $DOCKERDIR/secrets/basic_auth_credentials
cf_dns_api_token:
file: $DOCKERDIR/secrets/cf_dns_api_token
traefik_forward_auth:
file: $DOCKERDIR/secrets/traefik_forward_auth
mysql_root_password:
file: $SECRETSDIR/mysql_root_password
authelia_jwt_secret:
file: $SECRETSDIR/authelia_jwt_secret
authelia_session_secret:
file: $SECRETSDIR/authelia_session_secret
authelia_storage_mysql_password:
file: $SECRETSDIR/authelia_storage_mysql_password
authelia_notifier_smtp_password:
file: $SECRETSDIR/authelia_notifier_smtp_password
authelia_duo_api_secret_key:
file: $SECRETSDIR/authelia_duo_api_secret_key
include:
########################### SERVICES
# PREFIX ws = Web Server
# HOSTNAME=ws - defined in .env
# CORE
- compose/$HOSTNAME/traefik.yml
- compose/$HOSTNAME/socket-proxy.yml
- compose/$HOSTNAME/oauth.yml
- compose/$HOSTNAME/portainer.yml
# SECURITY
- compose/$HOSTNAME/crowdsec.yml
- compose/$HOSTNAME/traefik-bouncer.yml
- compose/$HOSTNAME/cloudflare-bouncer.yml
# DATABASES
- compose/$HOSTNAME/mariadb.yml
- compose/$HOSTNAME/redis.yml
# FRONTEND
# - compose/$HOSTNAME/autoindex.yml
- compose/$HOSTNAME/phpmyadmin.yml
- compose/$HOSTNAME/whoami.yml
# WEB
- compose/$HOSTNAME/nginx.yml
- compose/$HOSTNAME/php7.yml
# MONITORING
- compose/$HOSTNAME/node-exporter.yml
- compose/$HOSTNAME/glances.yml
# FILE MANAGEMENT
- compose/$HOSTNAME/vscode.yml
# NETWORK
- compose/$HOSTNAME/wg-easy.yml
# MAINTENANCE
- compose/$HOSTNAME/docker-gc.yml
- compose/$HOSTNAME/certdumper.yml