forked from Haxxnet/Compose-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.74 KB
/
docker-compose.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
version: "3.7"
services:
chevereto:
image: ghcr.io/chevereto/chevereto:latest
container_name: chevereto
init: true
restart: unless-stopped
volumes:
- chevereto:/var/www/html/images
ports:
- 8999:80
expose:
- 80
environment:
CHEVERETO_DB_HOST: mariadb
CHEVERETO_DB_USER: chevereto
CHEVERETO_DB_PASS: chevereto
CHEVERETO_DB_PORT: 3306
CHEVERETO_DB_NAME: chevereto
CHEVERETO_ASSET_STORAGE_TYPE: local
CHEVERETO_ASSET_STORAGE_URL: /images/_assets
CHEVERETO_ASSET_STORAGE_BUCKET: /var/www/html/images/_assets
# only enable the next env if chevereto is run behind a reverse proxy
# adjust to the corresponding http header of your reverse proxy, where a user's real IP is propagated
# see https://github.com/chevereto/chevereto/issues/44
#CHEVERETO_HEADER_CLIENT_IP: X-Forwarded-For
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.http.routers.chevereto.rule=Host(`chevereto.example.com`)
# - traefik.http.services.chevereto.loadbalancer.server.port=80
# - traefik.docker.network=proxy
# # Part for local lan services only
# - traefik.http.routers.chevereto.middlewares=authentik@docker
mariadb:
image: mariadb
container_name: chevereto_mariadb
restart: unless-stopped
init: true
environment:
MYSQL_DATABASE: chevereto
MYSQL_USER: chevereto
MYSQL_PASSWORD: chevereto
MARIADB_ROOT_PASSWORD: chevereto
volumes:
- chevereto_mariadb:/var/lib/mysql
#networks:
# - proxy
# volumes are recommended due to weird www-data permission in chevereto container
volumes:
chevereto: {}
chevereto_mariadb: {}
#networks:
# proxy:
# external: true