-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (64 loc) · 1.61 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
version: '3'
services:
wordpress:
build:
context: ./buildfiles
dockerfile: wordpress.dockerfile
args:
MY_USER: ${USER}
MY_UID: ${UID}
container_name: wordpress
volumes:
- 'wordpress:/bitnami/wordpress'
depends_on:
- mariadb
- grunt
ports:
- 80:8080
- 433:8443
environment:
- PHP_ENABLE_OPCACHE=false
- ALLOW_EMPTY_PASSWORD=yes
- WORDPRESS_DATABASE_HOST=mariadb
- WORDPRESS_DATABASE_PORT_NUMBER=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- WORDPRESS_USERNAME=admin
- WORDPRESS_PASSWORD=admin
- WEB_SERVER_DAEMON_USER=${USER}
- BITNAMI_DEBUG=true
- WORDPRESS_PLUGINS=https://github.com/rlewkowicz/livereload/archive/refs/tags/1.0.zip
- WORDPRESS_ENABLE_HTACCESS_PERSISTENCE=true
mariadb:
image: docker.io/bitnami/mariadb:10.3
container_name: mariadb
ports:
- 3306:3306
volumes:
- 'mariadb:/bitnami/mariadb'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
grunt:
build:
context: ./buildfiles
dockerfile: grunt.dockerfile
container_name: grunt
ports:
- 35729:35729
volumes:
- './wordpress:/wordpress'
volumes:
mariadb:
driver: local
driver_opts:
type: none
o: bind
device: ./mariadb
wordpress:
driver: local
driver_opts:
type: none
o: bind
device: ./wordpress