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 merge requests found
......@@ -12,22 +12,22 @@ services:
EXPOSE 80
EXPOSE 53/tcp
EXPOSE 53/udp
ENTRYPOINT ["./gocanary", "--enable-hardening=false", "--enable-https=true", "--autocert-domain=REPLACE_DOMAIN"]
#Or for cert.key and cert.pem
#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"
ENTRYPOINT ["./gocanary", "--enable-hardening=false" ]
network_mode: "host" #no need to map ports, and bypass default docker firewall
volumes:
- ./canary.yaml:/canary/canary.yaml
- ./config.yaml:/canary/config.yaml
#For let's encrypt certificates
- ./cache:/canary/cache
#- ./cache:/canary/cache
#Or use generated certs
#- ./cert.key:/canary/cert.key
#- ./cert.pem:/canary/cert.pem
#Map known certificates
#- /etc/ssl:/etc/ssl
#Or for redhat derivatives:
# - /etc/pki:/etc/pki
container_name: gocanary
restart: always
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