Files
Docker-Chevereto/docker-compose.yml.dist

60 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-02-04 15:12:55 -03:00
version: "3.9"
2023-12-13 09:21:10 -03:00
services:
database:
container_name: ${CONTAINER_BASENAME}_database
image: mariadb:jammy
networks:
- chevereto
volumes:
- database:/var/lib/mysql
restart: always
2024-02-04 15:12:55 -03:00
healthcheck:
2024-02-06 13:07:48 -03:00
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
2024-02-06 11:58:39 -03:00
interval: 10s
timeout: 5s
retries: 3
2023-12-13 09:21:10 -03:00
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: chevereto
MYSQL_USER: chevereto
MYSQL_PASSWORD: user_database_password
php:
container_name: ${CONTAINER_BASENAME}_php
image: ${IMAGE}
networks:
- chevereto
volumes:
- storage:/var/www/html/images/
ports:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:443
restart: always
2024-02-04 15:12:55 -03:00
depends_on:
database:
condition: service_healthy
2023-12-13 09:21:10 -03:00
environment:
VIRTUAL_HOST: ${HOSTNAME}
LETSENCRYPT_HOST: ${HOSTNAME}
CHEVERETO_DB_HOST: database
CHEVERETO_DB_USER: chevereto
CHEVERETO_DB_PASS: user_database_password
CHEVERETO_DB_PORT: 3306
CHEVERETO_DB_NAME: chevereto
CHEVERETO_HEADER_CLIENT_IP: X-Real-IP
CHEVERETO_HOSTNAME: ${HOSTNAME}
CHEVERETO_HOSTNAME_PATH: ${HOSTNAME_PATH}
CHEVERETO_HTTPS: ${HTTPS}
CHEVERETO_ASSET_STORAGE_TYPE: local
CHEVERETO_ASSET_STORAGE_URL: ${URL}images/_assets/
CHEVERETO_ASSET_STORAGE_BUCKET: /var/www/html/images/_assets/
CHEVERETO_ENCRYPTION_KEY: ${ENCRYPTION_KEY}
volumes:
database:
storage:
networks:
chevereto: