1
0
inception/srcs/docker-compose.yml

81 lines
1.9 KiB
YAML
Raw Normal View History

name: inception
2024-12-13 18:54:39 +01:00
volumes:
wp-db:
wp-site:
2024-12-13 18:54:39 +01:00
networks:
inception:
external: false
services:
nginx:
container_name: inception-nginx
build:
context: .
2025-01-17 16:49:53 +01:00
dockerfile: docker/nginx/Dockerfile
2024-12-13 18:54:39 +01:00
networks:
- inception
environment:
- TZ=Europe/Paris
2025-01-17 16:49:53 +01:00
- NGINX_PHP_HOST=inception-wordp-php
- NGINX_SSL_KEY_FILE=/etc/nginx/ssl/adjoly-wp.key
- NGINX_SSL_CERT_FILE=/etc/nginx/ssl/adjoly-wp.crt
2024-12-13 18:54:39 +01:00
depends_on:
2025-01-17 16:49:53 +01:00
wordpress-php:
condition: service_healthy
2025-01-17 16:49:53 +01:00
db:
condition: service_healthy
2024-12-13 18:54:39 +01:00
volumes:
- wp-site:/var/www/wordpress
2025-01-17 16:49:53 +01:00
- ./configs/nginx/templates:/etc/nginx/templates
- ./configs/nginx/entry:/docker-entrypoint.d
ports:
- "8443:8443"
2024-12-13 18:54:39 +01:00
restart: unless-stopped
wordpress-php:
container_name: inception-wordp-php
build:
context: .
dockerfile: docker/wordpress/Dockerfile
2024-12-13 18:54:39 +01:00
networks:
- inception
2025-01-17 16:49:53 +01:00
depends_on:
db:
condition: service_healthy
2024-12-13 18:54:39 +01:00
environment:
- WORDPRESS_DB_NAME=knl
- WORDPRESS_DB_USER=kanel
- WORDPRESS_DB_PASSWORD=alpine
- WORDPRESS_DB_HOST=db
- WORDPRESS_ADMIN_EMAIL=contact@kanel.ovh
- WORDPRESS_ADMIN_USER=kanel
- WORDPRESS_ADMIN_PASS=alpine
- WORDPRESS_SITE_TITLE='Kanel supremacy'
- WORDPRESS_SEARCH_ENGINE_VISIBILITY=false
- PHP_MEMORY_LIMIT="512M"
- PHP_MAX_UPLOAD="50M"
- PHP_PORT=9000
2024-12-13 18:54:39 +01:00
- TZ=Europe/Paris
volumes:
- wp-site:/var/www/wordpress
2024-12-13 18:54:39 +01:00
restart: unless-stopped
db:
container_name: inception-db
build:
context: .
dockerfile: docker/mariadb/Dockerfile
2024-12-13 18:54:39 +01:00
networks:
- inception
environment:
- MYSQL_ROOT_PASSWORD="alpine"
- MYSQL_PASSWORD="alpine"
- MYSQL_USER="kanel"
- MYSQL_DATABASE="knl"
2024-12-13 18:54:39 +01:00
- TZ=Europe/Paris
volumes:
- wp-db:/var/lib/mysql
2024-12-13 18:54:39 +01:00
restart: unless-stopped