From b4fd1cbb27cccc6d4e346e2301d2b0396dba0601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thor=20K=2E=20H=C3=B8g=C3=A5s?= Date: Thu, 28 Sep 2023 20:29:46 +0200 Subject: [PATCH] misc: add another docker-compose file with database & Redis (#620) Save us from the pain of having to configure a database elsewhere if you'd like to simply "docker compose up" and have a full running setup. Includes both MariaDB and Redis for local testing. --- docker-compose.dev.full.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker-compose.dev.full.yaml diff --git a/docker-compose.dev.full.yaml b/docker-compose.dev.full.yaml new file mode 100644 index 000000000..8f1786862 --- /dev/null +++ b/docker-compose.dev.full.yaml @@ -0,0 +1,30 @@ +version: '3' + +services: + web: + container_name: controlcenter + build: . + ports: + - 8080:80 + - 8443:443 + extra_hosts: + - "vatsca.local:host-gateway" + volumes: + - ./:/app + db: + image: docker.io/library/mariadb:10 + ports: + - 3306:3306 + environment: + MARIADB_DATABASE: controlcenter + MARIADB_ROOT_PASSWORD: root + redis: + image: docker.io/library/redis:6.2-alpine + restart: always + ports: + - 6379:6379 + volumes: + - cache:/data +volumes: + cache: + driver: local \ No newline at end of file