You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The setup is also already configured so you can run the tests through the VS Cod
37
37
38
38
## Docker Compose Override
39
39
40
-
During development, you can change Docker Compose settings that will only affect the local development environment in the file `docker-compose.override.yml`.
40
+
During development, you can change Docker Compose settings that will only affect the local development environment in the file `compose.override.yml`.
41
41
42
42
The changes to that file only affect the local development environment, not the production environment. So, you can add "temporary" changes that help the development workflow.
Copy the Traefik Docker Compose file to your server. You could do it by running the command `rsync` in your local terminal:
33
33
34
34
```bash
35
-
rsync -a docker-compose.traefik.yml root@your-server.example.com:/root/code/traefik-public/
35
+
rsync -a compose.traefik.yml root@your-server.example.com:/root/code/traefik-public/
36
36
```
37
37
38
38
### Traefik Public Network
@@ -97,10 +97,10 @@ Go to the directory where you copied the Traefik Docker Compose file in your rem
97
97
cd /root/code/traefik-public/
98
98
```
99
99
100
-
Now with the environment variables set and the `docker-compose.traefik.yml` in place, you can start the Traefik Docker Compose running the following command:
100
+
Now with the environment variables set and the `compose.traefik.yml` in place, you can start the Traefik Docker Compose running the following command:
101
101
102
102
```bash
103
-
docker compose -f docker-compose.traefik.yml up -d
103
+
docker compose -f compose.traefik.yml up -d
104
104
```
105
105
106
106
## Deploy the FastAPI Project
@@ -168,10 +168,10 @@ Copy the content and use that as password / secret key. And run that again to ge
168
168
With the environment variables in place, you can deploy with Docker Compose:
169
169
170
170
```bash
171
-
docker compose -f docker-compose.yml up -d
171
+
docker compose -f compose.yml up -d
172
172
```
173
173
174
-
For production you wouldn't want to have the overrides in `docker-compose.override.yml`, that's why we explicitly specify `docker-compose.yml` as the file to use.
174
+
For production you wouldn't want to have the overrides in `compose.override.yml`, that's why we explicitly specify `compose.yml` as the file to use.
Copy file name to clipboardExpand all lines: development.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,13 +105,13 @@ After you update it, run again:
105
105
docker compose watch
106
106
```
107
107
108
-
When deploying, for example in production, the main Traefik is configured outside of the Docker Compose files. For local development, there's an included Traefik in `docker-compose.override.yml`, just to let you test that the domains work as expected, for example with `api.localhost.tiangolo.com` and `dashboard.localhost.tiangolo.com`.
108
+
When deploying, for example in production, the main Traefik is configured outside of the Docker Compose files. For local development, there's an included Traefik in `compose.override.yml`, just to let you test that the domains work as expected, for example with `api.localhost.tiangolo.com` and `dashboard.localhost.tiangolo.com`.
109
109
110
110
## Docker Compose files and env vars
111
111
112
-
There is a main `docker-compose.yml` file with all the configurations that apply to the whole stack, it is used automatically by `docker compose`.
112
+
There is a main `compose.yml` file with all the configurations that apply to the whole stack, it is used automatically by `docker compose`.
113
113
114
-
And there's also a `docker-compose.override.yml` with overrides for development, for example to mount the source code as a volume. It is used automatically by `docker compose` to apply overrides on top of `docker-compose.yml`.
114
+
And there's also a `compose.override.yml` with overrides for development, for example to mount the source code as a volume. It is used automatically by `docker compose` to apply overrides on top of `compose.yml`.
115
115
116
116
These Docker Compose files use the `.env` file containing configurations to be injected as environment variables in the containers.
117
117
@@ -129,7 +129,7 @@ The `.env` file is the one that contains all your configurations, generated keys
129
129
130
130
Depending on your workflow, you could want to exclude it from Git, for example if your project is public. In that case, you would have to make sure to set up a way for your CI tools to obtain it while building or deploying your project.
131
131
132
-
One way to do it could be to add each environment variable to your CI/CD system, and updating the `docker-compose.yml` file to read that specific env var instead of reading the `.env` file.
132
+
One way to do it could be to add each environment variable to your CI/CD system, and updating the `compose.yml` file to read that specific env var instead of reading the `.env` file.
0 commit comments