#48 - deployment #68

Merged
Baakoma merged 9 commits from #48-deployment into main 2022-03-04 14:47:45 +01:00
Baakoma commented 2022-03-04 09:39:43 +01:00 (Migrated from github.com)
  • redis is now default session and queue driver
  • posgres instead of mysql
  • user avatars use external API (ui-avatars.com) than the local filesystem
* redis is now default session and queue driver * posgres instead of mysql * user avatars use external API (ui-avatars.com) than the local filesystem
mtracz (Migrated from github.com) requested changes 2022-03-04 09:59:02 +01:00
mtracz (Migrated from github.com) commented 2022-03-04 09:50:19 +01:00
APP_NAME="Toby HR application"
```suggestion APP_NAME="Toby HR application" ```
mtracz (Migrated from github.com) commented 2022-03-04 09:51:31 +01:00

Please define default port, to avoid issues during copy .env.example to .env in new project.

EXTERNAL_WEBSERVER_PORT=8080
Please define default port, to avoid issues during copy .env.example to .env in new project. ```suggestion EXTERNAL_WEBSERVER_PORT=8080 ```
@@ -30,1 +32,3 @@
EXTERNAL_WEBSERVER_PORT=
REDIS_PORT=6379
REDIS_HOST=toby-redis
mtracz (Migrated from github.com) commented 2022-03-04 09:54:12 +01:00

Maybe it will be good to create separate env_file for docker-compose config?

Maybe it will be good to create separate `env_file` for docker-compose config?
Baakoma (Migrated from github.com) reviewed 2022-03-04 10:11:56 +01:00
@@ -30,1 +32,3 @@
EXTERNAL_WEBSERVER_PORT=
REDIS_PORT=6379
REDIS_HOST=toby-redis
Baakoma (Migrated from github.com) commented 2022-03-04 10:11:56 +01:00

Separate env file only for docker-related config? What if we have the same variables in app and docker?

Separate `env file` only for docker-related config? What if we have the same variables in app and docker?
mtracz (Migrated from github.com) reviewed 2022-03-04 11:19:04 +01:00
@@ -12,3 +12,3 @@
DB_PORT=3306
DB_PORT=5432
DB_DATABASE=toby
DB_USERNAME=toby
mtracz (Migrated from github.com) commented 2022-03-04 11:08:56 +01:00

I didn't notice that there is a default value in docker-compose.yml. So let's make them consistent, and please set 80 in .env file.

ports:
      - ${EXTERNAL_WEBSERVER_PORT:-80}:80
I didn't notice that there is a default value in docker-compose.yml. So let's make them consistent, and please set 80 in .env file. ``` ports: - ${EXTERNAL_WEBSERVER_PORT:-80}:80 ```
@@ -30,1 +32,3 @@
EXTERNAL_WEBSERVER_PORT=
REDIS_PORT=6379
REDIS_HOST=toby-redis
mtracz (Migrated from github.com) commented 2022-03-04 11:19:04 +01:00

I thought about move all variables related to docker-compose substitution (docker-compose use shell variables and then variables from .env file). There cannot be multiple .env files for building docker-compose config.

We can specify env_files param in each service but then all variables from provided file will be injected into service container. That wont help us with this problem about multiple docker variables in .env file.

I thought about move all variables related to docker-compose substitution (docker-compose use shell variables and then variables from .env file). There cannot be multiple .env files for building docker-compose config. We can specify `env_files` param in each service but then all variables from provided file will be injected into service container. That wont help us with this problem about multiple docker variables in `.env` file.
kamilpiech97 (Migrated from github.com) reviewed 2022-03-04 14:26:22 +01:00
mtracz (Migrated from github.com) approved these changes 2022-03-04 14:46:49 +01:00
Sign in to join this conversation.