-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (97 loc) · 2.32 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
mysql:
image: mysql:latest
container_name: mysql
logging:
driver: none
# command: [
# "--max-allowed-packet=512M",
# "--wait_timeout=28800",
# "--interactive_timeout=28800"
# ]
volumes:
- "./data/db:/var/lib/mysql:delegated"
ports:
- ${MYSQL_LOCAL_PORT}:${MYSQL_DOCKER_PORT}
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TZ: ${TimeZoneMySQL}
restart: always
networks:
- default
litespeed:
image: litespeedtech/openlitespeed:latest
container_name: openlitespeed
env_file:
- .env
volumes:
- ./lsws/conf:/usr/local/lsws/conf
- ./lsws/admin-conf:/usr/local/lsws/admin/conf
- ./sites:/var/www/vhosts/
- ./acme:/root/.acme.sh/
- ./logs:/usr/local/lsws/logs/
ports:
- 80:80
- 443:443
- 443:443/udp
- 7080:7080
depends_on:
- mysql
restart: always
environment:
TZ: ${TimeZone}
networks:
- default
laravel:
image: bitnami/laravel:latest
container_name: laravel
volumes:
- ./sites/PHP/laravel:/app
ports:
- 8000:8000
environment:
LARAVEL_SKIP_DATABASE: "no"
LARAVEL_DATABASE_TYPE: mysql
LARAVEL_DATABASE_HOST: mysql
LARAVEL_DATABASE_PORT_NUMBER: ${MYSQL_LOCAL_PORT}
LARAVEL_DATABASE_NAME: ${MYSQL_DATABASE}
LARAVEL_DATABASE_USER: ${MYSQL_ROOT_USER}
LARAVEL_DATABASE_PASSWORD: ${MYSQL_ROOT_PASSWORD}
depends_on:
- mysql
restart: always
networks:
- default
phpmyadmin:
image: bitnami/phpmyadmin:latest
container_name: phpmyadmin
ports:
- 8080:8080
- 8443:8443
environment:
DATABASE_HOST: mysql
restart: always
networks:
- default
redis:
image: "redis:alpine"
container_name: redis
logging:
driver: none
# command: redis-server --requirepass 8b405f60665e48f795752e534d93b722
volumes:
- ./redis/data:/var/lib/redis
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
environment:
- REDIS_REPLICATION_MODE=master
restart: always
networks:
- default
networks:
default:
driver: bridge