Last active 1 month ago

janbc's Avatar janbc revised this gist 1 month ago. Go to revision

1 file changed, 3 insertions, 1 deletion

README.md

@@ -17,7 +17,7 @@ curl -sfSL -o compose.yml https://sp.tanhub.net/janbc/setup-dev-wordpress-contai
17 17 podman-compose pull
18 18 ```
19 19
20 - ## Bring up containers
20 + ### Bring up containers
21 21 If you have another service on these ports change them appropiately (left ones)
22 22 ```
23 23 podman-compose up -d
@@ -28,6 +28,8 @@ podman-compose up -d
28 28 podman logs -f wp_wordpress_1
29 29 ```
30 30
31 + ##
32 +
31 33 ### Bring down containers
32 34 ```
33 35 podman-compose down

janbc's Avatar janbc revised this gist 1 month ago. Go to revision

No changes

janbc's Avatar janbc revised this gist 1 month ago. Go to revision

1 file changed, 1 insertion, 1 deletion

README.md

@@ -9,7 +9,7 @@ sudo apt update && sudo apt install -y podman podman-compose
9 9
10 10 ### Download compose file
11 11 ```
12 - curl -sfSL -o compose.yml
12 + curl -sfSL -o compose.yml https://sp.tanhub.net/janbc/setup-dev-wordpress-containers/raw/HEAD/compose.yml
13 13 ```
14 14
15 15 ### Pull container images (apox 2.5GB)

janbc's Avatar janbc revised this gist 1 month ago. Go to revision

No changes

janbc's Avatar janbc revised this gist 1 month ago. Go to revision

2 files changed, 73 insertions

README.md(file created)

@@ -0,0 +1,40 @@
1 + ### Login
2 + Username: user \
3 + Password: bitnami
4 +
5 + ### Install podman and podman-comppose
6 + ```
7 + sudo apt update && sudo apt install -y podman podman-compose
8 + ```
9 +
10 + ### Download compose file
11 + ```
12 + curl -sfSL -o compose.yml
13 + ```
14 +
15 + ### Pull container images (apox 2.5GB)
16 + ```
17 + podman-compose pull
18 + ```
19 +
20 + ## Bring up containers
21 + If you have another service on these ports change them appropiately (left ones)
22 + ```
23 + podman-compose up -d
24 + ```
25 +
26 + ### Check logs
27 + ```
28 + podman logs -f wp_wordpress_1
29 + ```
30 +
31 + ### Bring down containers
32 + ```
33 + podman-compose down
34 + ```
35 +
36 + ### Purge installation (remove podman volumes)
37 + ```
38 + podman volume rm wp_mariadb_data wp_wordpress_data
39 + ```
40 +

compose.yml(file created)

@@ -0,0 +1,33 @@
1 + name: wp
2 +
3 + services:
4 + mariadb:
5 + image: public.ecr.aws/bitnami/mariadb:10.2.44
6 + volumes:
7 + - mariadb_data:/bitnami/mariadb
8 + environment:
9 + # ALLOW_EMPTY_PASSWORD is recommended only for development.
10 + - ALLOW_EMPTY_PASSWORD=yes
11 + - MARIADB_USER=wordpress
12 + - MARIADB_DATABASE=wordpress_db
13 + wordpress:
14 + image: public.ecr.aws/bitnami/wordpress:6.4.3
15 + ports:
16 + - 8080:8080
17 + - 8443:8443
18 + volumes:
19 + - wordpress_data:/bitnami/wordpress
20 + depends_on:
21 + - mariadb
22 + environment:
23 + # ALLOW_EMPTY_PASSWORD is recommended only for development.
24 + - ALLOW_EMPTY_PASSWORD=yes
25 + - WORDPRESS_DATABASE_HOST=mariadb
26 + - WORDPRESS_DATABASE_PORT_NUMBER=3306
27 + - WORDPRESS_DATABASE_USER=wordpress
28 + - WORDPRESS_DATABASE_NAME=wordpress_db
29 + volumes:
30 + mariadb_data:
31 + driver: local
32 + wordpress_data:
33 + driver: local
Newer Older