summaryrefslogtreecommitdiff
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
commitad232020d57d2c77dfd5400dc4a8290b484c8ba2 (patch)
tree3e2121666986c67fe554a1e9046682b7370d412e /docker-compose.yaml
Initial commitmain
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000..a72cee7
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,23 @@
+version: "3.5"
+
+services:
+ journal_api:
+ container_name: journal_api
+ image: mppowers/journal_api
+ restart: always
+ env_file:
+ - env
+ volumes:
+ - ./media:/media
+ - static:/static
+ - ./data:/data
+ command: ["gunicorn", "--max-requests", "1000", "--max-requests-jitter", "50", "journal.wsgi", "--bind=0.0.0.0:80", "--capture-output", "--access-logfile" ,"-" ]
+
+ static_files:
+ image: nginx
+ restart: always
+ volumes:
+ - static:/usr/share/nginx/html/static
+
+volumes:
+ static: