Commit ddbcedba authored by David's avatar David

Adding stuff

parent f3f36e35
Pipeline #32 failed with stage
in 39 seconds
db_password.txt
db_root_password.txt
\ No newline at end of file
build:
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY:latest
- docker push $CI_REGISTRY:latest
version: '3.1'
services:
wordpress:
image: gitlab-registry.light.kow.is/kowis-projects/wordpress-container
restart: always
volumes:
- wp_themes:/var/www/html/wp-content/themes/
- wp_plugins:/var/www/html/wp-content/plugins/
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD_FILE: /run/secrets/db_password
WORDPRESS_DB_NAME: wordpress
secrets:
- db_password
db:
image: mariadb:10
restart: always
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD_FILE: /run/secrets/db_password
MYSQL_RANDOM_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
secrets:
- db_root_password
- db_password
secrets:
db_password:
file: db_password.txt
db_root_password:
file: db_root_password.txt
volumes:
db_data:
wp_themes:
wp_plugins:
\ No newline at end of file
FROM wordpress:php7.3
# going to add the snuffleupagus security php module
RUN wget https://github.com/nbs-system/snuffleupagus/releases/download/v0.5.0/snuffleupagus_0.5.0_amd64.deb \
&& apt install ./snuffleupagus_0.5.0_amd64.deb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment