-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from alexandrechevalierCBH/configuration
Configuration - Transport
- Loading branch information
Showing
4 changed files
with
47 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
###< phpunit/phpunit ### | ||
|
||
.env | ||
docker-compose.override.yml | ||
docker compose.override.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
.PHONY: start | ||
start: cp-env build install-deps | ||
docker-compose up -d | ||
docker compose up -d | ||
|
||
.PHONY: cp-env | ||
cp-env: | ||
@cp -n .env.dist .env || true | ||
|
||
.PHONY: build | ||
build: | ||
docker-compose build | ||
docker compose build | ||
|
||
.PHONY: install-deps | ||
install-deps: | ||
docker-compose run --rm php composer install | ||
docker compose run --rm php composer install | ||
|
||
.PHONY: database-migrate | ||
database-migrate: | ||
docker-compose run --rm php bin/console doctrine:migrations:migrate | ||
docker compose run --rm php bin/console doctrine:migrations:migrate | ||
|
||
.PHONY: database-create | ||
database-create: | ||
docker-compose run --rm php bin/console doctrine:database:create | ||
docker compose run --rm php bin/console doctrine:database:create | ||
|
||
.PHONY: database-drop | ||
database-drop: | ||
docker-compose run --rm php bin/console doctrine:database:drop --if-exists --force | ||
docker compose run --rm php bin/console doctrine:database:drop --if-exists --force | ||
|
||
.PHONY: fixtures-load | ||
fixtures-load: | ||
docker-compose run --rm php bin/console doctrine:fixtures:load | ||
docker compose run --rm php bin/console doctrine:fixtures:load | ||
|
||
.PHONY: reset-db | ||
reset-db: database-drop database-create database-migrate fixtures-load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
--- | ||
version: '3' | ||
version: "3" | ||
|
||
services: | ||
php: | ||
platform: linux/x86_64 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
env_file: .env | ||
volumes: | ||
- '.:/usr/src/app' | ||
restart: unless-stopped | ||
php: | ||
platform: linux/x86_64 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
env_file: .env | ||
volumes: | ||
- ".:/usr/src/app" | ||
restart: unless-stopped | ||
|
||
nginx: | ||
platform: linux/x86_64 | ||
image: nginx:1.21.3-alpine | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro | ||
- ./public:/usr/src/app/public | ||
restart: unless-stopped | ||
nginx: | ||
platform: linux/x86_64 | ||
image: nginx:1.21.3-alpine | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro | ||
- ./public:/usr/src/app/public | ||
restart: unless-stopped | ||
|
||
# phpmyadmin: | ||
# platform: linux/x86_64 | ||
# image: phpmyadmin | ||
# environment: | ||
# - PMA_ARBITRARY=1 | ||
# ports: | ||
# - 8080:80 | ||
# restart: unless-stopped | ||
phpmyadmin: | ||
platform: linux/x86_64 | ||
image: phpmyadmin | ||
environment: | ||
- PMA_ARBITRARY=1 | ||
ports: | ||
- 8080:80 | ||
restart: unless-stopped | ||
|
||
database: | ||
image: mysql:8.0.27 | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: "yes" | ||
MYSQL_DATABASE: ${MYSQL_DATABASE} | ||
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | ||
MYSQL_USER: ${MYSQL_USER} | ||
volumes: | ||
- db-data:/var/lib/mysql:rw | ||
restart: unless-stopped | ||
database: | ||
image: mysql:8.0.27 | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: "yes" | ||
MYSQL_DATABASE: ${MYSQL_DATABASE} | ||
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | ||
MYSQL_USER: ${MYSQL_USER} | ||
volumes: | ||
- db-data:/var/lib/mysql:rw | ||
restart: unless-stopped | ||
|
||
volumes: | ||
db-data: ~ | ||
db-data: ~ |