-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 1.25 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
services:
wordpress:
build:
context: .
dockerfile: wordpress.Dockerfile
container_name: 'wordpress'
ports:
- '80:80'
- '4000:4000'
volumes:
- ./:/app
environment:
ROCKET_ADDRESS: 0.0.0.0
ROCKET_PORT: 4000
WORDPRESS_DB_HOST: database
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_CONFIG_EXTRA: |
# Allow application passwords to be used without HTTPS
define( 'WP_ENVIRONMENT_TYPE', 'local' );
# Disable auto-update – it makes Dockerized tests super unstable
define( 'WP_AUTO_UPDATE_CORE', false );
healthcheck:
test: ["CMD", "bash" ,"-c", "[ -f /var/www/html/wp-config.php ]"]
interval: 4s
timeout: 1s
retries: 30
database:
image: 'public.ecr.aws/docker/library/mariadb:11.2'
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: 'wordpress'
MYSQL_USER: 'wordpress'
MYSQL_PASSWORD: 'wordpress'
MYSQL_RANDOM_ROOT_PASSWORD: true