-
Notifications
You must be signed in to change notification settings - Fork 19
/
dev.yml
66 lines (63 loc) · 1.7 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
database:
container_name: ${CONTAINER_BASENAME}_database
image: mysql
networks:
- chevereto
volumes:
- database:/var/lib/mysql
ports:
- ${DB_PORT}:3306
restart: always
healthcheck:
# test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"] # MariaDB
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] # MySQL
interval: 10s
timeout: 5s
retries: 3
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/
- chevereto:/var/www/html/
- type: bind
source: ${SOURCE}
target: /var/www/chevereto
ports:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:443
restart: always
depends_on:
database:
condition: service_healthy
environment:
CHEVERETO_ENVIRONMENT: dev
CHEVERETO_DB_HOST: database
CHEVERETO_DB_USER: chevereto
CHEVERETO_DB_PASS: user_database_password
CHEVERETO_DB_PORT: 3306
CHEVERETO_DB_NAME: chevereto
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}
CHEVERETO_MAX_POST_SIZE: 2G
CHEVERETO_MAX_UPLOAD_SIZE: 2G
volumes:
database:
assets:
storage:
chevereto:
networks:
chevereto: