-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
88 lines (79 loc) · 1.54 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
services:
app:
build: .
platform: linux/amd64
links:
- consul
- mysql
- nacos
- oracle
- php-fpm
- pgsql
- redis
- wordpress
environment:
DISABLE_DEFAULT_SERVER: 1
GITHUB_ACTIONS: "yes"
ports:
- "80:80"
volumes:
- .:/var/www
- wordpress:/var/www/html
php-fpm:
image: php:8.3-fpm
volumes:
- .:/var/www
wordpress:
image: wordpress:php8.3-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:
image: mysql:8.2
environment:
MYSQL_DATABASE: test
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
pgsql:
image: postgres:14
environment:
POSTGRES_USER: root
POSTGRES_DB: test
POSTGRES_PASSWORD: root
oracle:
image: gvenzl/oracle-xe:slim
platform: linux/amd64
environment:
ORACLE_PASSWORD: oracle
ports:
- 1521
redis:
image: redis:6.2
nacos:
image: nacos/nacos-server
platform: linux/amd64
ports:
- 8848
environment:
MODE: standalone
PREFER_HOST_MODE: hostname
consul:
image: consul:1.15
command:
consul agent -dev -client=0.0.0.0
ports:
- 8500
volumes:
wordpress: