Skip to content
Snippets Groups Projects
Commit b5adf9df authored by Jose Carlos Luna Duran's avatar Jose Carlos Luna Duran
Browse files

Simplified example for docker compose inline

parent 1b39119d
No related branches found
No related tags found
No related merge requests found
...@@ -12,22 +12,22 @@ services: ...@@ -12,22 +12,22 @@ services:
EXPOSE 80 EXPOSE 80
EXPOSE 53/tcp EXPOSE 53/tcp
EXPOSE 53/udp EXPOSE 53/udp
ENTRYPOINT ["./gocanary", "--enable-hardening=false", "--enable-https=true", "--autocert-domain=REPLACE_DOMAIN"] ENTRYPOINT ["./gocanary", "--enable-hardening=false" ]
#Or for cert.key and cert.pem network_mode: "host" #no need to map ports, and bypass default docker firewall
#ENTRYPOINT ["./gocanary", "--enable-hardening=false", "--enable-https=true"]
ports:
- "REPLACE_PUBLIC_IP:53:53/udp"
- "REPLACE_PUBLIC_IP:53:53/tcp"
- "REPLACE_PUBLIC_IP:443:443"
- "REPLACE_PUBLIC_IP:80:80"
volumes: volumes:
- ./canary.yaml:/canary/canary.yaml - ./canary.yaml:/canary/canary.yaml
- ./config.yaml:/canary/config.yaml - ./config.yaml:/canary/config.yaml
#For let's encrypt certificates #For let's encrypt certificates
- ./cache:/canary/cache #- ./cache:/canary/cache
#Or use generated certs #Or use generated certs
#- ./cert.key:/canary/cert.key #- ./cert.key:/canary/cert.key
#- ./cert.pem:/canary/cert.pem #- ./cert.pem:/canary/cert.pem
#Map known certificates
#- /etc/ssl:/etc/ssl
#Or for redhat derivatives:
# - /etc/pki:/etc/pki
container_name: gocanary container_name: gocanary
restart: always restart: always
logging: logging:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment