-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp-docker-compose.yml
60 lines (55 loc) · 1.6 KB
/
temp-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
# This is a sample .yml docker file to setup new wp installation.
# Make sure to create its copy out of this folder and rename it to docker-compose.yml
# Afterwards run this command: docker-compose up --build -d
services:
mariadb:
image: bitnami/mariadb:latest
container_name: chatbot_mariadb
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_wordpress
- MARIADB_PASSWORD=wordpress_password
- MARIADB_DATABASE=bitnami_wordpress
volumes:
- chatbot_mariadb_data:/bitnami/mariadb
networks:
- chatbot_wordpress-network
ports:
- "3307:3306"
wordpress:
image: bitnami/wordpress:latest
container_name: chatbot_wordpress
environment:
- ALLOW_EMPTY_PASSWORD=yes
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_PASSWORD=wordpress_password
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- WORDPRESS_DATABASE_HOST=mariadb
ports:
- "8090:8080"
- "8450:8443"
volumes:
- ./wp_root:/bitnami/wordpress # Local directory for WordPress code
- chatbot_wordpress_data:/bitnami/wordpress # Added a named volume for WordPress data
networks:
- chatbot_wordpress-network
depends_on:
- mariadb
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: chatbot_phpmyadmin
environment:
- PMA_HOST=mariadb
- PMA_PORT=3307
ports:
- "8095:80"
depends_on:
- mariadb
networks:
- chatbot_wordpress-network
volumes:
chatbot_mariadb_data:
chatbot_wordpress_data:
networks:
chatbot_wordpress-network:
driver: bridge