@@ -554,9 +554,9 @@ If you prefer to integrate your apps without recipe directly in docker swarm, yo
|
||||
|
||||
Theoretically you are free to choose whatever stack-name you want, just make sure it is unique in your swarm. The default in recipes is to use the (sub-)domain of the app deployed, replacing dots `.` by underscores `_`. (`yourapp.example.com` -> STACK_NAME: `yourapp_example_com`,
|
||||
|
||||
### _Example:_
|
||||
_Example:_
|
||||
|
||||
#### 1. on your server create a `.env` yourself with the needed env-vars
|
||||
__1. on your server create a `.env` yourself with the needed env-vars__
|
||||
|
||||
```
|
||||
DOMAIN=example.com
|
||||
@@ -566,13 +566,13 @@ LETS_ENCRYPT_ENV=production
|
||||
# ... the .env-vars needed in your compose-file
|
||||
```
|
||||
|
||||
#### 2. source this .env-file
|
||||
__2. source this .env-file__
|
||||
```
|
||||
set -a
|
||||
source .env
|
||||
```
|
||||
|
||||
#### 3. adapt your `compose.yml`
|
||||
__3. adapt your `compose.yml`__
|
||||
|
||||
make sure your `compose.yml` contains the necessary traefik-labels.
|
||||
|
||||
@@ -613,7 +613,7 @@ networks:
|
||||
external: true
|
||||
```
|
||||
|
||||
4. deploy your app ("stack")
|
||||
__4. deploy your app ("stack")__
|
||||
```
|
||||
docker stack deploy -c compose.yml example_com
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user