Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Last active October 15, 2025 10:52
Show Gist options
  • Save ajeetraina/6ceb2c5a71a48baf1e1f813613da70c8 to your computer and use it in GitHub Desktop.
Save ajeetraina/6ceb2c5a71a48baf1e1f813613da70c8 to your computer and use it in GitHub Desktop.
Compose file for MCP Gateway
cat > compose.yaml << 'EOF'
services:
gateway:
image: docker/mcp-gateway
command:
- --servers=atlassian
- --secrets=/run/secrets/atlassian_secrets
- --transport=sse
- --port=8811
- --verbose
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- atlassian_secrets
ports:
- "8811:8811"
secrets:
atlassian_secrets:
file: ./secrets/jira.env
EOF
cat secrets/jira.env
# It should have URL and username too!
cat > secrets/jira.env << 'EOF'
atlassian.jira.api_token=ATATT3xFXXX
atlassian.jira.personal_token=ATATT3xFfGF0IQSzXXXXX_1vmoXiv5LKlsMnCaHMRkwDy8uPdd4vdT7dgWaYj6vkTOJ-ufdL4z_zkoqOFq8S7gSB_z2iX-5PlLmPKm_3C-QJu0jY=60BF4364
atlassian.confluence.api_token=dummy
atlassian.confluence.personal_token=dummy
atlassian.jira.url=https://your-domain.atlassian.net
[email protected]
EOF
# Restart to pick up the changes
docker compose restart gateway
docker compose logs -f gateway
@ajeetraina
Copy link
Author

cat > .env << 'EOF'
JIRA_URL=https://your-domain.atlassian.net
JIRA_USERNAME=[email protected]
JIRA_API_TOKEN=your_token_here
JIRA_PERSONAL_TOKEN=your_token_here
EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment