-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.31 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
# syntax version.
version: "3.7"
# services list.
services:
# base image
alpine-base:
image: "hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-base"
build:
context: "${PHP_VERSION}/alpine/base"
args:
ALPINE_VERSION: ${ALPINE_VERSION}
# swoole image
alpine-swoole:
image: "hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-swoole${SPEC}-${SW_VERSION}"
build:
context: "${PHP_VERSION}/alpine/swoole"
dockerfile: "Dockerfile${SPEC}"
args:
ALPINE_VERSION: ${ALPINE_VERSION}
SW_VERSION: ${SW_VERSION}
COMPOSER_VERSION: ${COMPOSER_VERSION}
PHP_BUILD_VERSION: ${PHP_BUILD_VERSION}
# swow image
alpine-swow:
image: "hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-swow${SPEC}-${SW_VERSION}"
build:
context: "${PHP_VERSION}/alpine/swow"
args:
ALPINE_VERSION: ${ALPINE_VERSION}
SW_VERSION: ${SW_VERSION}
COMPOSER_VERSION: ${COMPOSER_VERSION}
PHP_BUILD_VERSION: ${PHP_BUILD_VERSION}
# dev image
alpine-dev:
image: "hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-dev"
build:
context: "${PHP_VERSION}/alpine/dev"
args:
ALPINE_VERSION: ${ALPINE_VERSION}
COMPOSER_VERSION: ${COMPOSER_VERSION}
PHP_BUILD_VERSION: ${PHP_BUILD_VERSION}