-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
93 lines (78 loc) · 2.63 KB
/
docker-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
86
87
88
89
90
91
92
93
# 2023-01-30
# This is one of your sites.
version: '2.4'
services:
4soulsband_wordpress:
container_name: 4soulsband_wordpress
image: wordpress:php8.0
cpu_quota: 10000 # 1000 = 1%
mem_reservation: 256M
restart: always
depends_on:
- 4soulsband_mysql_db
env_file: deploy_configs/env_vars/4soulsband_wordpress.env
volumes:
- ./4soulsband_wordpress:/var/www/html
- ./deploy_configs/env_vars/4soulsband_wordpress.ini:/var/www/html/php.ini
labels:
- traefik.http.routers.4soulsband_wordpress_http.rule=Host(`xn--4-htbm7bza.xn--p1ai`) || Host(`www.xn--4-htbm7bza.xn--p1ai`)
- traefik.http.routers.4soulsband_wordpress_http.entrypoints=http
- traefik.http.routers.4soulsband_wordpress_http.middlewares=redirect-http-to-https@file,redirect-www@file
- traefik.http.routers.4soulsband_wordpress.rule=Host(`xn--4-htbm7bza.xn--p1ai`) || Host(`www.xn--4-htbm7bza.xn--p1ai`)
- traefik.http.routers.4soulsband_wordpress.tls.certresolver=${CASERVER}
- traefik.http.services.4soulsband_wordpress.loadbalancer.server.port=80
- traefik.docker.network=traefik-reverse-proxy-net
- traefik.enable=true
- traefik.http.routers.4soulsband_wordpress.entrypoints=https
- traefik.http.routers.4soulsband_wordpress.tls=true
- traefik.http.routers.4soulsband_wordpress.middlewares=redirect-www@file
networks:
traefik-reverse-proxy-net:
4soulsband_net:
4soulsband_mysql_db:
container_name: 4soulsband_mysql_db
image: mysql/mysql-server:8.0
cpu_quota: 10000 # 1000 = 1%
mem_reservation: 512M
restart: always
command: --default-authentication-plugin=mysql_native_password
env_file: ./deploy_configs/env_vars/4soulsband_wordpress.env
volumes:
- ./4soulsband_mysql_db:/var/lib/mysql
networks:
4soulsband_net:
redis:
image: redis:6.0.15-alpine
container_name: redis
cpu_quota: 20000 # 1000 = 1%
mem_reservation: 512M
restart: always
command: --port 6380
entrypoint: redis-server --maxmemory 512mb --maxmemory-policy allkeys-lru
security_opt:
- no-new-privileges:true
logging:
options:
max-size: "10m"
max-file: "3"
volumes:
- redis_data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
4soulsband_net:
networks:
4soulsband_net:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.16.193.0/24
traefik-reverse-proxy-net:
external: true
redis_net:
external: true
volumes:
redis_data: