Skip to content

Commit

Permalink
Merge pull request #8 from Cleanwalk-org-QNSCNT/fix/docker
Browse files Browse the repository at this point in the history
fix: example files, correct env fields, and cleaner compose file
  • Loading branch information
ArthurFrin authored Mar 3, 2024
2 parents fc6c6b3 + f351341 commit c3449ff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ You only need Docker to launch the app.

## How to launch

Copy the `stash.env.example` file to `stash.env` and fill the required fields, same with `api/.env.example` to `api/.env`.

### Developement

To launch the app on dev environnement, use the docker compose tool at the root directory of the project.
Expand Down
3 changes: 3 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DATABASE_URI=mysql+mysqlconnector://root:root@localhost:3306/cleanwalk_db
API_KEY=1234567890
JWT_SECRET_KEY=098765433
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- "80:80"
networks:
- frontend

api:
hostname: api
container_name: api
Expand All @@ -31,7 +31,7 @@ services:
networks:
- frontend
- backend

db:
hostname: db
container_name: db
Expand All @@ -43,7 +43,7 @@ services:
- db:/var/lib/mysql
networks:
- backend

adminer:
container_name: adminer
image: adminer:latest
Expand All @@ -63,4 +63,3 @@ volumes:
networks:
frontend:
backend:

7 changes: 7 additions & 0 deletions stash.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MYSQL_ROOT_PASSWORD=password
DATABASE_URI=mysql+mysqlconnector://root:root@localhost:3306/cleanwalk_db
API_KEY=1234567890
JWT_SECRET_KEY=098765433

ADMINER_DEFAULT_SERVER=mysql
ADMINER_DESIGN=hydra

0 comments on commit c3449ff

Please sign in to comment.