forked from swoole/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (85 loc) · 1.86 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
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
94
95
96
version: '3.2'
services:
image:
container_name: swoole-library-image-builder
build: .
image: swoole-library
entrypoint: echo
command: Image ready
composer:
container_name: swoole-library-composer-runner
image: swoole-library
entrypoint: composer
command: validate
volumes:
- ./:/var/www
app:
container_name: swoole-library-app
image: swoole-library
links:
- mysql
- redis
- wordpress
- nacos
- consul
environment:
DISABLE_DEFAULT_SERVER: 1
GITHUB_ACTIONS: "yes"
ports:
- "80:80"
volumes:
- .:/var/www
- wordpress:/var/www/html
php-fpm:
container_name: swoole-library-php-fpm
image: php:7.4-fpm
volumes:
- .:/var/www
wordpress:
container_name: swoole-library-wordpress
image: wordpress:php7.4-fpm
links:
- mysql
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: username
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: test
WORDPRESS_TABLE_PREFIX: wp_
volumes:
- type: volume
source: wordpress
target: /var/www/html
volume:
nocopy: false
mysql:
container_name: swoole-library-mysql
image: mysql:5.7
environment:
MYSQL_DATABASE: test
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
redis:
container_name: swoole-library-redis
image: redis:5.0
nacos:
container_name: swoole-library-nacos
image: nacos/nacos-server
ports:
- "8848:8848"
environment:
MODE: standalone
PREFER_HOST_MODE: hostname
consul:
container_name: swoole-library-consul
image: consul
command:
consul agent -dev -client=0.0.0.0
ports:
- "8500:8500"
volumes:
wordpress:
networks:
default:
name: swoole-library-network