Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd11f26

Browse files
committed
add docker-compose file from xenon to use with portainer auto build and gitops deploy
1 parent 75f39c5 commit fd11f26

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

‎.env‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
COMPOSE_PROJECT_NAME=bookstack
2+
BASEPATH=/mnt/storage/docker
3+
MAIL_DRIVER=smtp
4+
5+
# SMTP server host address
6+
MAIL_HOST=mail.maisp.de
7+
8+
# SMTP server port
9+
# Using port 465 will force connections to be via TLS
10+
MAIL_PORT=587
11+
12+
# Connection encryption to use
13+
# Valid values are: tls, null
14+
# Using 'tls' will require either TLS or STARTTLS to be used.
15+
# When using 'null' STARTTLS will still be attempted if announced
16+
# as supported by your SMTP server.
17+
# Using port 465 above will force connections to be via TLS.
18+
MAIL_ENCRYPTION=tls
19+
20+
# Authentication details for your SMTP service
21+
MAIL_USERNAME=user@provider.tld
22+
MAIL_PASSWORD=onlyifneeded
23+
24+
# The "from" email address for outgoing email
25+
MAIL_FROM=noreply@yourdomain.tld
26+
27+
# The "from" name used for outgoing email
28+
MAIL_FROM_NAME=BookStack

‎docker-compose-xenon.yml‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
services:
2+
mysql:
3+
image: mysql
4+
environment:
5+
- MYSQL_ALLOW_EMPTY_PASSWORD=1
6+
- MYSQL_DATABASE=bookstack
7+
- MYSQL_USER=bookstack
8+
- MYSQL_PASSWORD=secret
9+
volumes:
10+
- '${BASEPATH}/${COMPOSE_PROJECT_NAME}/mysql-data:/var/lib/mysql'
11+
networks:
12+
default:
13+
14+
app:
15+
image: bookstack:25.05.2
16+
build:
17+
context: /
18+
dockerfile: Dockerfile
19+
depends_on:
20+
- mysql
21+
environment:
22+
- DB_HOST=mysql:3306
23+
- DB_DATABASE=bookstack
24+
- DB_USERNAME=bookstack
25+
- DB_PASSWORD=secret
26+
#set the APP_ to the URL of bookstack without without a trailing slash APP_URL=https://example.com
27+
- APP_URL=https://bookstack.ioui.eu
28+
- APP_KEY=SomeRandomStringWith32Characters
29+
volumes:
30+
- '${BASEPATH}/${COMPOSE_PROJECT_NAME}/uploads:/var/www/bookstack/public/uploads'
31+
- '${BASEPATH}/${COMPOSE_PROJECT_NAME}/storage-uploads:/var/www/bookstack/storage/uploads'
32+
# ports:
33+
# - "8080:8080"
34+
networks:
35+
default:
36+
system_internal:
37+
38+
networks:
39+
default:
40+
system_internal:
41+
external: true

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /