Skip to content

Commit

Permalink
project over
Browse files Browse the repository at this point in the history
  • Loading branch information
vbachele committed Sep 29, 2022
1 parent f3f6e20 commit 4ec74f0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ If you have questions: please contact me, I will be glad to give you an answer !
### 3. [NGINX](https://github.com/vincentbachelet-collab/Inception/blob/main/README.md#NGINX)
### 4. [WORDPRESS](https://github.com/vincentbachelet-collab/Inception/blob/main/README.md#WORDPRESS)
### 4. [MARIADB](https://github.com/vincentbachelet-collab/Inception/blob/main/README.md#MARIADB)
### 5. [BONUS]()

# Definitions
## What is a docker ?
Expand Down Expand Up @@ -240,6 +241,11 @@ mysql -uroot -p$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE < /usr/local/bin/wordpress.s
SELECT * FROM wp_users; // select
```

# BONUS PART

## REDIS
[What is redis works with wordpress and what is a cache](https://www.section.io/engineering-education/how-to-set-up-and-configure-redis-caching-for-wordpress/)

# Useful things to know about inception dockers and containers
- I installed Ohmyzsh - check my dockerfile to see the command
- On the mac, Apache service is installed by default. I deleted Apache from my computer to avoid any problem with nginx
Expand Down
22 changes: 16 additions & 6 deletions scrs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
volumes:
- wordpress_data:/var/www/html
restart: always
networks:
networks:
- network

mariadb:
Expand All @@ -23,7 +23,7 @@ services:
volumes:
- mariadb_data:/var/lib/mysql
# in case of problem we restart automatically the container
networks:
networks:
- network
ports:
- 3306:3306
Expand All @@ -37,7 +37,7 @@ services:
depends_on:
- mariadb
#command: /usr/bin/mysql_secure_installation
build:
build:
context: ./requirements/wordpress
dockerfile: dockerfile
restart: always
Expand All @@ -47,12 +47,22 @@ services:
- 9000:9000
volumes:
- wordpress_data:/var/www/html
networks:
networks:
- network

volumes:
mariadb_data: {}
wordpress_data: {}
mariadb_data:
driver: local
driver_opts:
type: none
device: /home/vbachele/data/mysql
o: bind
wordpress_data:
driver: local
driver_opts:
type: none
device: /home/vbachele/data/wordpress
o: bind

networks:
network:
Expand Down

0 comments on commit 4ec74f0

Please sign in to comment.