Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Rename docker compose files #150

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker-compose.override.yml
compose.override.yaml
/.env
.ssh/
.idea/
.idea/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ flogs: sync-env ## Display logs of front
## We add `; \` to ignore error. `cp -n .env.dist .env;` could not work if .env exist already, it wont be replaced
init-dev: sync-env ## Init dev env
cp -n .env.dist .env; \
cp -n docker-compose.override.yml.template docker-compose.override.yml; \
cp -n compose.override.yaml.template compose.override.yaml; \
if uname | grep -iq "linux\|darwin"; then \
echo "Add $(BASE_DOMAIN) and $(API_DOMAIN) mail.${BASE_DOMAIN} and samltest.$(BASE_DOMAIN) to your /etc/hosts"; \
if grep -q $(BASE_DOMAIN) /etc/hosts ; then echo "not adding to /etc/hosts" ; else printf "\n127.0.0.1 $(BASE_DOMAIN) $(API_DOMAIN) samltest.$(BASE_DOMAIN) mail.${BASE_DOMAIN}\n" | sudo tee -a /etc/hosts ; fi \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ When cloning your project, you need to

- Copy a .env.dist as a .env
- Create expected values into your "/etc/hosts"
- Copy docker-compose.override.yml.template into docker-compose.override.yml
- Copy compose.override.yaml.template into compose.override.yaml

A specific makefile task has been created:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
initback:
extends:
service: back
file: docker-compose.yml
file: compose.yaml
restart: "no"
volumes:
- ./apps/back:/var/www/html/:delegated
Expand Down Expand Up @@ -60,7 +60,7 @@ services:
mysql_tests:
extends:
service: mysql
file: docker-compose.yml
file: compose.yaml
tmpfs:
- /var/lib/mysql

Expand Down Expand Up @@ -92,4 +92,4 @@ networks:
tcm_network:
name: tcm_network
default:
name: tcm_network
name: tcm_network
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/01_getting_started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// prepare dev env
```
cp docker-compose.override.yml.template docker-compose.override.yml
cp compose.override.yaml.template compose.override.yaml
cp .env.dist .env
```

Expand Down
4 changes: 2 additions & 2 deletions docs/CICD.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sudo docker run hello-world
sudo apt install docker-compose
sudo apt install make
cp .env.dist .env
cp docker-compose.override.yml.template docker-compose.override.yml
cp compose.override.yaml.template compose.override.yaml

sudo groupadd docker
sudo usermod -aG docker $USER
Expand All @@ -55,4 +55,4 @@ To finish, Create a deploy token (NOT a key) named gitlab-deploy-token

After that, add the server IP into the gitlab-ci.yml

Then, on GIT tag, it should deploy
Then, on GIT tag, it should deploy