Skip to content

Commit 0c8e6dc

Browse files
risssonauthentik-automation[bot]
authored andcommitted
root: fix docker-compose data mount (#18903)
1 parent 709aad1 commit 0c8e6dc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
- ${COMPOSE_PORT_HTTPS:-9443}:9443
3838
restart: unless-stopped
3939
volumes:
40-
- ./media:/data/media
40+
- ./data:/data
4141
- ./custom-templates:/templates
4242
worker:
4343
command: worker
@@ -57,7 +57,7 @@ services:
5757
user: root
5858
volumes:
5959
- /var/run/docker.sock:/var/run/docker.sock
60-
- ./media:/data/media
60+
- ./data:/data
6161
- ./certs:/certs
6262
- ./custom-templates:/templates
6363
volumes:

scripts/generate_docker_compose.py

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
from yaml import safe_dump
24

35
from authentik import authentik_version
@@ -42,7 +44,7 @@
4244
"image": authentik_image,
4345
"ports": ["${COMPOSE_PORT_HTTP:-9000}:9000", "${COMPOSE_PORT_HTTPS:-9443}:9443"],
4446
"restart": "unless-stopped",
45-
"volumes": ["./media:/data/media", "./custom-templates:/templates"],
47+
"volumes": ["./data:/data", "./custom-templates:/templates"],
4648
},
4749
"worker": {
4850
"command": "worker",
@@ -62,7 +64,7 @@
6264
"user": "root",
6365
"volumes": [
6466
"/var/run/docker.sock:/var/run/docker.sock",
65-
"./media:/data/media",
67+
"./data:/data",
6668
"./certs:/certs",
6769
"./custom-templates:/templates",
6870
],

0 commit comments

Comments
 (0)