Skip to content

Commit 4e126a4

Browse files
authored
Merge pull request #78 from thin-edge/docs-fix-ca-docker-compose
docs: fix docker compose example when using c8y ca
2 parents 90fd6e5 + fd3d770 commit 4e126a4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/CONTAINER_OPTION2_with_ca.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,18 @@ NOTE: These instructions use the Cumulocity Certificate Authority feature which
112112
tedge:
113113
image: ghcr.io/thin-edge/tedge-container-bundle
114114
restart: always
115-
env_file:
116-
- .env
115+
environment:
116+
- CA=c8y
117+
env_file:
118+
- .env
117119
ports:
118-
- 127.0.0.1:1883:1883
119-
- 127.0.0.1:8000:8000
120-
- 127.0.0.1:8001:8001
120+
- 127.0.0.1:1883:1883
121+
- 127.0.0.1:8000:8000
122+
- 127.0.0.1:8001:8001
123+
# When using docker, add access to the host
124+
# if you want to be able to ssh into the host from the container
125+
extra_hosts:
126+
- host.docker.internal:host-gateway
121127
tmpfs:
122128
- /tmp
123129
volumes:

0 commit comments

Comments
 (0)