Skip to content

Commit de6e3df

Browse files
authored
Update your-own-containers.md (#351)
Added docs for generating docker-compose.yml via generate-traefik-template
1 parent 0908653 commit de6e3df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/advanced/your-own-containers.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ When you add a container manually as outlined on this page, neither of those thi
1414

1515
If you want to create a role file that you can install like the built-in applications, see [here](../sandbox/basics.md#contributing-to-sandbox-apps).
1616

17+
## Utilizing Generate Traefik Template
18+
19+
Create your application folder
20+
21+
mkdir /opt/APPNAME
22+
23+
Run the Generate Traefik Template
24+
25+
sb install generate-traefik-template
26+
27+
Once you've answered the required fields, Saltbox will create a file in `/tmp/docker-compose.yml`
28+
29+
Move the newly created `/tmp/docker-compose.yml` to the `/opt/APPNAME`
30+
31+
mv /tmp/docker-compose.yml /opt/APPNAME
32+
33+
Once moved, modify `/opt/APPNAME/docker-compose.yml` to the requirements of your container. See IMPORTANT below.
34+
1735
IMPORTANT: In the examples below, `APPNAME`, `APPLICATION_PORT`, `/CONFIG`, and `DOCKER/IMAGE:TAG` are _placeholders_. *You need to change those* **everywhere they appear** to match the application you are installing.
1836

1937
## Docker Compose

0 commit comments

Comments
 (0)