forked from kejilion/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LNMP-docker-compose-10.yml
51 lines (45 loc) · 1.04 KB
/
LNMP-docker-compose-10.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
services:
nginx:
image: nginx:alpine
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./conf.d:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs
- ./html:/var/www/html
- ./log/nginx:/var/log/nginx
tmpfs:
- /var/cache/nginx:rw,noexec,nosuid,size=512m
php:
image: php:fpm-alpine
container_name: php
restart: always
volumes:
- ./html:/var/www/html
php74:
image: php:7.4-fpm-alpine
container_name: php74
restart: always
volumes:
- ./html:/var/www/html
mysql:
image: mysql
container_name: mysql
restart: always
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: webroot
MYSQL_USER: kejilion
MYSQL_PASSWORD: kejilionYYDS
redis:
image: redis:alpine
container_name: redis
restart: always
volumes:
- ./redis:/data