-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
51 lines (49 loc) · 1.26 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
version: '3'
services:
karasu:
restart: always
# if you want to build from scratch (not recommended)
# build: .
image: "krasjet/karasu"
# copy .env.example to .env
env_file:
- ./.env
expose:
- "${KARASU_PORT}"
volumes:
- ./run/db:/app/db/
- ./run/view:/app/view/
- ./run/cache:/app/cache/
- ./run/backup:/app/backup/
- static:/app/static
kamome:
restart: always
build:
context: ./kamome/
args:
# use free fonts instead of my default licensed fonts
- USE_ALT_FONTS=true
# - USE_ALT_FONTS=false
image: "kamome"
env_file:
- ./.env
environment:
- NGINX_HOST=localhost
# keys for SSL
- SSL_CERT=cert.pem
- SSL_KEY=cert.key
volumes:
- ./kamome/nginx/http.template:/etc/nginx/nginx.template
# If you want to use SSL
# - ./kamome/nginx/https.template:/etc/nginx/nginx.template
- ./run/view/:/app/view/
- ./certs:/etc/ssl/certs
- static:/app/
command: /bin/bash -c "envsubst '$$NGINX_HOST $$KARASU_PORT $$SSL_CERT $$SSL_KEY' < /etc/nginx/nginx.template > /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"
ports:
- "80:80"
- "443:443"
depends_on:
- karasu
volumes:
static: