Skip to content

Commit 9e0627c

Browse files
committed
chore: add OpenBao, dufs WebDAV and replace mailhog with mailpit
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent dac11e6 commit 9e0627c

File tree

1 file changed

+58
-6
lines changed

1 file changed

+58
-6
lines changed

docker-compose.yml

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
networks:
2+
internal:
3+
driver: bridge
4+
name: internal
5+
external:
6+
external: true
7+
name: external
8+
19
services:
2-
php:
10+
akaunting.php:
311
build: .docker/php
412
volumes:
513
- ./volumes/akaunting:/var/www/html
@@ -23,10 +31,18 @@ services:
2331
- DB_PASSWORD=${DB_PASSWORD:-root}
2432
- DB_PREFIX=${DB_PREFIX:-}
2533

34+
- MAIL_HOST=${MAIL_HOST:-mailpit}
35+
- MAIL_PORT=${MAIL_PORT:-1025}
36+
37+
- OPENBAO_ADDR=${OPENBAO_ADDR:-http://openbao:8200}
38+
- OPENBAO_TOKEN=${OPENBAO_TOKEN:-dev-only-root-token}
39+
2640
- XDEBUG_CONFIG
2741
extra_hosts:
2842
- host.docker.internal:host-gateway
29-
web:
43+
networks:
44+
- internal
45+
akaunting.nginx:
3046
build:
3147
context: .docker/nginx
3248
args:
@@ -35,16 +51,52 @@ services:
3551
volumes:
3652
- ./volumes/akaunting:/var/www/html:ro
3753
depends_on:
38-
- php
54+
- akaunting.php
3955
ports:
40-
- 80:80
41-
mysql:
56+
- 8082:80
57+
networks:
58+
- internal
59+
- external
60+
akaunting.mysql:
4261
image: mysql
4362
volumes:
4463
- ./volumes/mysql/data:/var/lib/mysql
4564
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
4665
ports:
47-
- 3306:3306
66+
- 3307:3306
4867
environment:
4968
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
5069
- MYSQL_DATABASE=${MYSQL_DATABASE:-akaunting}
70+
networks:
71+
- internal
72+
- external
73+
mailpit:
74+
image: axllent/mailpit:latest
75+
ports:
76+
- 127.0.0.1:${MAILPIT_UI_PORT:-8025}:8025
77+
- 127.0.0.1:${MAILPIT_SMTP_PORT:-1025}:1025
78+
networks:
79+
- internal
80+
81+
openbao:
82+
image: openbao/openbao:latest
83+
command: server -dev
84+
environment:
85+
- BAO_DEV_ROOT_TOKEN_ID=${OPENBAO_DEV_TOKEN:-dev-only-root-token}
86+
- BAO_DEV_LISTEN_ADDRESS=0.0.0.0:8200
87+
cap_add:
88+
- IPC_LOCK
89+
ports:
90+
- 127.0.0.1:${OPENBAO_PORT:-8200}:8200
91+
networks:
92+
- internal
93+
94+
dufs:
95+
image: sigoden/dufs:latest
96+
command: /data -A --allow-upload --allow-delete
97+
volumes:
98+
- ./volumes/webdav:/data
99+
ports:
100+
- 127.0.0.1:${DUFS_PORT:-5000}:5000
101+
networks:
102+
- internal

0 commit comments

Comments
 (0)