aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-10 14:54:57 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-10 14:54:57 +0100
commitddd7c8fad0ff0d9200e70b52d9d02860c5d543c4 (patch)
treee89c3ff2342f1d8b8afdf10f54172a98ab790420 /docker-compose.yml
parent4150c3e091be5d9fb9a7dfaf9fefa80b67679b5a (diff)
downloadbookup-0.0.8.tar.gz
bookup-0.0.8.tar.bz2
Feat: CI improvements and GitLab Pages support0.0.8
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml73
1 files changed, 73 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..47a18c7
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,73 @@
+---
+# Needs a Docker Compose supporting the 3.4 version onwards, such as the one
+# from Debian bullseye-backports.
+version: '3.4'
+
+services:
+ compiler:
+ image: "bookup/compiler:0.0.1"
+
+ build:
+ context: .
+ target: compiler
+ dockerfile: Dockerfile
+ args:
+ - CONTAINER_UID=${CONTAINER_UID:-1000}
+ - CONTAINER_GID=${CONTAINER_GID:-1000}
+
+ volumes:
+ - .:/srv/shared
+
+ entrypoint: "make -C /srv/shared"
+
+ restart: "no"
+
+ tester:
+ image: "bookup/compiler:0.0.1"
+
+ build:
+ context: .
+ target: compiler
+ dockerfile: Dockerfile
+ args:
+ - CONTAINER_UID=${CONTAINER_UID:-1000}
+ - CONTAINER_GID=${CONTAINER_GID:-1000}
+
+ volumes:
+ - .:/srv/shared
+
+ entrypoint: "make -C /srv/shared tests"
+
+ restart: "no"
+
+ site:
+ image: "bookup/site:0.0.1"
+
+ build:
+ context: .
+ target: site
+ dockerfile: Dockerfile
+
+ volumes:
+ - .:/srv/shared
+
+ ports:
+ - 80:80
+
+ entrypoint: "apache2ctl -DFOREGROUND"
+
+ tor:
+ image: "bookup/tor:0.0.1"
+
+ build:
+ context: .
+ target: tor
+ dockerfile: Dockerfile
+
+ volumes:
+ - tor:/var/lib/tor
+
+ entrypoint: "/usr/bin/tor -f /etc/tor/torrc"
+
+volumes:
+ tor: {}