-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
45 lines (39 loc) · 1.05 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
#
# 警告 compose 文件中包含中文可能会报错,所以阅读之后请删掉中文
#
#
# docker-compose.yml 文件是为了方便本地测试构建镜像,实际请在 CI 服务器中构建镜像
#
# @link https://docs.docker.com/compose/compose-file/
#
#
# $ docker compose build
#
services:
test:
build:
context: .
dockerfile: deploy/test.Dockerfile
args:
- PHP_VERSION=${PHP_VERSION:-8.3.12}
image: ${DOCKER_HUB_USERNAME:-khs1994}/EXAMPLE
nginx:
build:
context: .
dockerfile: Dockerfile
args:
- NGINX_VERSION=${NGINX_VERSION:-1.15.0}
target: nginx
image: ${DOCKER_HUB_USERNAME:-khs1994}/nginx:${NGINX_VERSION:-1.15.0}-pro-alpine
depends_on:
- php
php:
build:
context: .
dockerfile: Dockerfile
target: php
args:
- PHP_VERSION=${PHP_VERSION:-8.3.12}
- NODE_VERSION=${NODE_VERSION:-20.5.1}
- NODE_REGISTRY=https://registry.npmmirror.com
image: ${DOCKER_HUB_USERNAME:-khs1994}/php:${PHP_VERSION:-8.3.12}-pro-alpine