-
-
Notifications
You must be signed in to change notification settings - Fork 131
/
docker-lnmp.override.example.yml
93 lines (78 loc) · 2.09 KB
/
docker-lnmp.override.example.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
#
# @link https://www.ruanyifeng.com/blog/2016/07/yaml.html
#
x-common:
&common
labels:
- ${LNMP_DOMAIN:-com.khs1994.lnmp}=true
- ${LNMP_DOMAIN:-com.khs1994.lnmp}.app.env=development
#
# 此文件具有最高优先级,可以通过以下命令查看最终的 compose 文件
#
# $ ./lnmp-docker config > docker-compose.yaml
#
services:
## https://docs.docker.com/compose/extends/
# add service
my-service:
image: ${LNMP_LIBRARY_NS:-library}/bash
# override service
# php8:
# &php8
# # ! change php8 default image
# image: username/php:${LNMP_PHP8_VERSION:-8.3.0}-fpm-alpine
# # ! cn mirror image
# # image: ccr.ccs.tencentyun.com/khs1994/php:${LNMP_PHP8_VERSION:-8.3.0}-fpm-alpine
# # ! s6
# # image: ${LNMP_DOCKER_IMAGE_PREFIX:-khs1994}/php:${LNMP_PHP8_VERSION:-8.3.0}-s6-alpine
# # command: []
# # ! open more port
# ports:
# - "9000"
# - "10001:10001"
# # ! add more volumes
# volumes:
# - git-sync-data:/app/git-sync
# composer:
# << : *php8
# volumes:
# - ./config/composer/auth.json:/tmp/composer/auth.json
# nginx-unit:
# << : *php8
# mysql:
# # change default volumes settings
# volumes:
# - ./data:/var/lib/mysql
# More Demo
# phpmyadmin:
# image: phpmyadmin:5.2.0-fpm-alpine
# volumes:
# - phpmyadmin:/var/www/html
# healthcheck:
# test: ["NONE"]
nginx:
# volumes:
# - git-sync-data:/app/git-sync
# - phpmyadmin:/var/www/html
depends_on:
- php8
# ports:
# - 8022:8022
swoole:
<< : *common
image: ${LNMP_DOCKER_IMAGE_PREFIX:-khs1994}/php:${LNMP_PHP_VERSION:-8.3.0}-swoole-alpine
# command 指令只需传入文件名即可
command:
- /app/swoole/index.php
ports:
- 10001:10001
networks:
- backend
volumes:
- ${APP_ROOT:-./app}:${LNMP_PHP_PATH:-/app}
- ./config/php8/php.ini:/usr/local/etc/php/php.ini:ro
- ./config/php8/docker-php.ini:/usr/local/etc/php/conf.d/docker-php.ini:ro
- ./log/php:/var/log/php
# volumes:
# git-sync-data:
# phpmyadmin: