diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2b231e --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +## docker-compose && .env files + +--- + +This repo houses some usefull docker-compose files, ready to use. Get yourself your [nginx-webserver](./web/nginx/) or easily spin up a docker db with [mysql](./db/mysql/) or [mariadb](./db/mariadb/). + +> [!TIP] +> You have to also change the content of the .env files for the databases. Just enter a password, a path to store the db files and a database name. + +Anyways, this repo should only be there for hosting my docker compose files easily. Maybe at some point in my life, there will be my own docker containers under this organization (docker). But for now, this is only for templates and stuff ^^ diff --git a/mariadb/.env b/db/mariadb/.env similarity index 100% rename from mariadb/.env rename to db/mariadb/.env diff --git a/mariadb/docker-compose.yml b/db/mariadb/docker-compose.yml similarity index 100% rename from mariadb/docker-compose.yml rename to db/mariadb/docker-compose.yml diff --git a/mysql/.env b/db/mysql/.env similarity index 100% rename from mysql/.env rename to db/mysql/.env diff --git a/mysql/docker-compose.yml b/db/mysql/docker-compose.yml similarity index 100% rename from mysql/docker-compose.yml rename to db/mysql/docker-compose.yml diff --git a/web/nginx/docker-compose.yml b/web/nginx/docker-compose.yml new file mode 100644 index 0000000..b4ed660 --- /dev/null +++ b/web/nginx/docker-compose.yml @@ -0,0 +1,8 @@ +services: + nginx-web: + restart: unless-stopped + image: nginx:alpine + ports: + - "8080:80" + volumes: + - ./path/to/webroot:/usr/share/nginx/html:ro