From ddd7c8fad0ff0d9200e70b52d9d02860c5d543c4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 10 Jun 2024 14:54:57 +0100 Subject: Feat: CI improvements and GitLab Pages support --- docker-compose.yml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') 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: {} -- cgit v1.2.3