HAProxy with docker compose #1276
Unanswered
sandipdsp1990
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi was trying to deploy this to my local server using the following config but seems like haproxy does not work correctly. I am newbie for using HaProxy can someone guide me on what i am doing wrong?
version: "3.7"
services:
haproxy:
image: tutum/haproxy
ports:
- 443:8443
- 1936:1936
environment:
- STATS_PORT=1936
- VIRTUAL_HOST=https://*
- FORCE_SSL=yes
- SSL_CERT=-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgdGV2ho8Ws\nT+9kh9sVgA71G3UTP2o5MG0+Z0er+3iLhdeR/jmaZcyeHyDys5pNnbbSjnbnNkcO\nPTrjm43qDGKpD6jrs+fEGkafAB06WFm1lrwmOHL0UC60/7OqdjNZjXmjy+kwRan2\naerK++vi5vQpcGAfZ5IdEY9nGsS9dH/jjDURCQkT26cmrUalkpfNUM9i/9hLdmco\nDAnlrS5zDGpXbG2gwNjTPDtc5jAIwwYi33wQZ4u2BMmqOis/JsUVhtIBG+onplR5\nsskok6vsvIfISfe9+Bw+g1dUecwYEo8Atje7Bj1tQqj0+j3VcquG1E8rSRAbALx1\n8dPXDwJzAgMBAAECggEAAWqPG8fk5t2t8/ykpc7n0vVmylcIeeia/907n70a00Ih\nMUKXPLalKQr0JTiqKCch1Yp8oU99LIOd5MZqj8A86aS18HkqqMf7k9IVlTMRfdzj\nbkU4gPXCL2ADfX1BwBdTuGo9JYrvOuV2vyQCJencfHLqFUxi2+04+pElaVS0h2HE\nSi77SKk8Meqh8YoLiwluvuQkdCSNHTuY4iLqPNOrm3qpuI6LmWg36KKQLWrdI4NK\nrhngfC7npfUkBrAaYRM6VCDOG4gyxq+o+KavpbRpSz7MNwiAMyuEiJRvq9fIG5mW\nOmmIjj+wxMluMrHzJauOpZPUJk+oekb5K92IsL96AQKBgQDEF+eqYbvftB7AQXBR\nC6JicDpKTPEq5ABChIFdEnKGQZ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DPYv/YS3Zn\nKAwJ5a0ucwxqV2xtoMDY0zw7XOYwCMMGIt98EGeLtgTJqjorPybFFYbSARvqJ6ZU\nebLJKJOr7LyHyEn3vfgcPoNXVHnMGBKPALY3uwY9bUKo9Po91XKrhtRPK0kQGwC8\ndfHT1w8CcwIDAQABo1MwUTAdBgNVHQ4EFgQUfxq0N/WgWjtXBn7DZDALTOopf4Qw\nHwYDVR0jBBgwFoAUfxq0N/WgWjtXBn7DZDALTOopf4QwDwYDVR0TAQH/BAUwAwEB\n/zANBgkqhkiG9w0BAQsFAAOCAQEACVkxksE1mlYmImEhtIVhhmfb940kmLZvPfxl\n4gNcIbF9etcxzI9PG6tF+NKqvxYcAxpsNrO00k9FkrP1mX6cP7Lx93YlvVynFQQ8\n/tAlOv8EvO9PLna4JPMojRBth5E6SP5pigZVwOtrF+Ga0pyo+HIbYpHACFJZBaY8\nUgMGA/inK909zgDeDmB6bmbb7rmwVdDTi1nlEZ2bfi+Oiszi8RaIhlJ0uUgGsbQc\nDeMsuyLQJ38bLpaEhYsjbD/Ib3xV8KzhxqvX327kuN7XCOqvCS1mYA3mR2wDMRqu\nze+sO7ewkjM5ACscuxYNve2+jRwWW1vhkiYYLCYkhC3i4m6emA==\n-----END CERTIFICATE-----\n
links:
- alfio
alfio:
image: alfio/alf.io
environment:
POSTGRES_PORT_5432_TCP_PORT: 5432
POSTGRES_PORT_5432_TCP_ADDR: db
POSTGRES_ENV_POSTGRES_DB: alfio
POSTGRES_ENV_POSTGRES_USERNAME: alfio
POSTGRES_ENV_POSTGRES_PASSWORD: alfio
SPRING_PROFILES_ACTIVE: jdbc-session
ports:
- "8443:8443"
- "80:8080"
db:
image: postgres:10
environment:
POSTGRES_DB: alfio
POSTGRES_USER: alfio
POSTGRES_PASSWORD: alfio
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
volumes:
- data-volume:/var/lib/postgresql/data
volumes:
data-volume:
Beta Was this translation helpful? Give feedback.
All reactions