aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-26 12:44:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-26 12:44:31 +0300
commit0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7 (patch)
treed6d591ba8845d6cda37c756a44f9c92605c7df09 /docker-compose.yml
parentdocker: run once at startup, even when in cron (diff)
downloadcgitize-0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7.tar.gz
cgitize-0f5dbcc3bdeb401f00c1cdcb7b0ef826003b5bd7.zip
docker: add a frontend nginx image
At first, I built a custom image at https://egort.name/. It had a rather long development history, and I just copied the files from there.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..beba3a6
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,30 @@
+version: '3.7'
+
+services:
+ backend:
+ build:
+ context: .
+ environment:
+ # Every 3 hours:
+ SCHEDULE: '0 */3 * * *'
+ image: egortensin/cgitize:latest
+ logging:
+ driver: journald
+ restart: unless-stopped
+ volumes:
+ - ./examples/docker:/etc/cgitize:ro
+ - repositories:/var/tmp/cgitize
+ frontend:
+ build:
+ context: ./docker/frontend
+ image: egortensin/cgitize-frontend:latest
+ logging:
+ driver: journald
+ ports:
+ - '127.0.0.1:80:80'
+ restart: unless-stopped
+ volumes:
+ - repositories:/mnt/cgitize:ro
+
+volumes:
+ repositories: