1
0
inception/srcs/docker-compose.yml

62 lines
1.1 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: .
dockerfile: docker/nginx/dockerfile
2024-12-13 18:54:39 +01:00
networks:
- inception
environment:
- TZ=Europe/Paris
depends_on:
- wordpress-php
- db
volumes:
- wp-site:/var/www/html
ports:
- "443:443"
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
environment:
- 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/html
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