-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (87 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
87 lines (87 loc) · 2.09 KB
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
services:
composer:
restart: 'no'
image: composer:2
command: composer update
user: "${UID}:${GID}"
volumes:
- .:/app
node:
env_file:
- ./.env
# build:
# context: ./build/docker/node-dev
# dockerfile: Dockerfile
# image: node:16
# working_dir: /usr/src/app
#env_file: *app-env
image: node:18
working_dir: /usr/src/app
volumes:
- ./wp-content/themes/wp-starter:/usr/src/app
tty: true
# user: "${UID}:${GID}"
ports:
- 3000:3000
command: sh -c "npm install; npm run build; npm run dev"
mysql:
env_file:
- ./.env
platform: linux/x86_64
image: mysql:8.1.0
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "mysql", "-p${DB_PASSWORD}"]
interval: 30s
timeout: 30s
retries: 5
ports:
- 50046:3306
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
- ./config/db/:/root/
- db-data:/var/lib/mysql
wordpress:
depends_on:
mysql:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
args:
APP_UID: "${UID}"
APP_GID: "${GID}"
ports:
- '8080:8080'
env_file:
- ./.env
environment:
WORDPRESS_DATABASE_HOST: ${DB_HOST}
WORDPRESS_DATABASE_PORT_NUMBER: ${DB_PORT}
WORDPRESS_DATABASE_USER: ${DB_USER}
WORDPRESS_DATABASE_NAME: ${DB_DATABASE}
WORDPRESS_DATABASE_PASSWORD: ${DB_PASSWORD}
volumes:
- ./wp-content:/var/www/wp-content
- ./.env:/var/www/.env
- ./config/wp-config.php:/var/www/wp-config.php
- ./vendor:/var/www/vendor
- ./.htaccess:/var/www/.htaccess
- ./build/docker/wordpress/wordpress-php.ini:/etc/php84/conf.d/wordpress-php.ini
phpmyadmin:
env_file:
- ./.env
platform: linux/x86_64
image: phpmyadmin/phpmyadmin:5.2.1
links:
- mysql:mysql
ports:
- 8000:80
environment:
PMA_HOST: ${PMA_HOST}
PMA_USER: ${PMA_USER}
PMA_PASSWORD: ${PMA_PASSWORD}
UPLOAD_LIMIT: 516M
volumes:
db-data: