Skip to content

Commit 5c99465

Browse files
committed
🐳 🚜 Refactors compose
1 parent b9c8408 commit 5c99465

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,6 @@ dmypy.json
137137

138138
# Cython debug symbols
139139
cython_debug/
140+
141+
# Custom compose options
142+
compose.override.yml

compose-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -eo pipefail
3+
4+
python manage.py migrate --noinput --skip-checks
5+
6+
python manage.py collectstatic --noinput --skip-checks
7+
8+
exec "$@"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22

33
db:
44
platform: linux/amd64
5+
# platform: linux/arm64/v8
56

67
utility:
78
platform: linux/arm64

compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
web:
3030
<<: *common-settings
3131
command: ["python", "-m", "manage", "runserver", "0.0.0.0:8000"]
32+
entrypoint: ["/src/compose-entrypoint.sh"]
3233
init: true
3334
ports:
3435
- "8000:8000"

0 commit comments

Comments
 (0)