From 0d28b50944e7fc66e3e159ab562ad898f02578c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Gdula?= Date: Wed, 3 May 2023 17:08:41 +0300 Subject: [PATCH] Add initial files --- .gitignore | 7 ++++++- Caddy/Caddyfile | 8 ++++++++ docker-compose.yml | 18 ++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Caddy/Caddyfile create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index 68bc17f..0269939 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,9 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ +.vscode/ + +# Remove dockerfile generated files +Caddy/data/ +Caddy/config/ diff --git a/Caddy/Caddyfile b/Caddy/Caddyfile new file mode 100644 index 0000000..2936ee9 --- /dev/null +++ b/Caddy/Caddyfile @@ -0,0 +1,8 @@ +# Expo Website +:5000 { + reverse_proxy 127.0.0.1:5000 +} +# Highscore Server +:6000 { + reverse_proxy 127.0.0.1:6000 +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..789786c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3.8" + +services: + caddy: + image: caddy:latest + # restart: unless-stopped + ports: + - "80:80" + - "443:443" + - "5000:5000" + - "6000:6000" + volumes: + - ./Caddy/Caddyfile:/etc/caddy/Caddyfile + - ./Caddy/data:/data + - ./Caddy/config:/config + environment: + - ACME_AGREE=true + - TZ=Europe/London \ No newline at end of file