Skip to content

Commit

Permalink
Merge pull request #1240 from tarlepp/refactor/docker-compose
Browse files Browse the repository at this point in the history
Refactor(env)/Container names
  • Loading branch information
tarlepp committed May 29, 2021
2 parents 5b6ca56 + 7f08442 commit c5f9b11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/USAGE_CHECKLIST.md
Expand Up @@ -31,12 +31,15 @@ started to use this template.
* [ ] Application configuration
* [ ] [.env](../.env) Change `APP_SECRET` value with new one, you can use
eg. [this](http://nux.net/secret) tool for that. Also remember to
change that `APP_SECRET` value in [.env.test](../.env.test) and
change that `APP_SECRET` value in [.env.test](../.env.test) and in
[.env.gh-actions](../.env.gh-actions) files.
* [ ] [application.json](../secrets/application.json) Change file contents
to match your application configuration - specially you need to
generate new `JWT_PASSPHRASE` value. Also remember to do those
changes to [application_test.json](../secrets/application_test.json)
files.
* [ ] [docker-compose.yml](../docker-compose.yml) Change `container_name` to
match your application.
* [ ] 3rd party services that you might not need _or_ you need to change those
to work with _your_ application - if you don't need to use those services
just delete those files and all is done.
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
@@ -1,6 +1,7 @@
version: '3'
services:
php:
container_name: symfony-backend-php-fpm
build:
context: .
dockerfile: ./Dockerfile_dev
Expand All @@ -24,11 +25,13 @@ services:
TRUSTED_PROXIES: "127.0.0.1,REMOTE_ADDR"

nginx:
container_name: symfony-backend-nginx
build:
context: ./docker/nginx/
args:
HOST_UID: $HOST_UID
HOST_GID: $HOST_GID
user: $HOST_UID:$HOST_GID
depends_on:
- php
ports:
Expand All @@ -39,6 +42,7 @@ services:
#- /app/var/

mysql:
container_name: symfony-backend-mysql
build:
context: ./docker/mysql/
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
Expand Down

0 comments on commit c5f9b11

Please sign in to comment.