-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 891 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (42 loc) · 891 Bytes
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
services:
nginx:
image: nginx:1.27.3-alpine-perl
ports:
- 8000:8000
volumes:
- ./nginx.conf:/etc/nginx/conf.d/template.conf
mysql:
image: mysql:8.0
environment:
# MYSQL_ROOT_PASSWORD: 123123
MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_DATABASE: template
MYSQL_USER: speed
MYSQL_PASSWORD: 123123
ports:
- 3306:3306
volumes:
# - /data/docker/my_custom.cnf:/etc/mysql/conf.d/my_custom.cnf
# - ./mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- mysql_data:/var/lib/mysql
redis:
image: redis:7.4-alpine
expose:
- "6379"
volumes:
- redis_data:/data
template:
image: template
expose:
- "9501"
depends_on:
- mysql
- redis
volumes:
- ./:/opt/www
volumes:
mysql_data:
redis_data:
networks:
default_net:
name: default_net