Skip to content

Instantly share code, notes, and snippets.

@sebastian13
Last active March 27, 2023 15:46
Show Gist options
  • Select an option

  • Save sebastian13/808c6363933943ad892f433db9d6dba7 to your computer and use it in GitHub Desktop.

Select an option

Save sebastian13/808c6363933943ad892f433db9d6dba7 to your computer and use it in GitHub Desktop.
A docker-compose file for the official Atlassian Confluence Server, using a postgres database and a separate reverse proxy, connected via docker network 'www-network'.
version: '3'
services:
confluence:
image: atlassian/confluence-server:6.11
restart: always
expose:
- 8090
volumes:
- ./confluence/:/var/atlassian/application-data/confluence
networks:
- default
- proxy-tier
environment:
- CATALINA_CONNECTOR_PROXYNAME=confluence.example.com
- CATALINA_CONNECTOR_PROXYPORT=443
- CATALINA_CONNECTOR_SCHEME=https
- CATALINA_CONNECTOR_SECURE=true
postgres:
image: postgres:9.6
restart: always
expose:
- 5432
volumes:
- ./pgdata/:/var/lib/postgresql/data
environment:
- POSTGRES_USER=confluence
- POSTGRES_DB=confluence
- POSTGRES_PASSWORD=123456789
networks:
- default
networks:
proxy-tier:
external:
name: www-network
@vrudikov

vrudikov commented Feb 2, 2021

Copy link
Copy Markdown

Thanks for sharing! Can you give an example of Reverse Proxy config, plz

@sebastian13

Copy link
Copy Markdown
Author

Thanks for sharing! Can you give an example of Reverse Proxy config, plz

You're welcome. You can find my nginx reverse proxy setup on github: https://github.com/sebastian13/docker-compose-nginx-proxy

@ozdeadmeat

Copy link
Copy Markdown

What needs to change to make this a version 2 compose file?

@sebastian13

Copy link
Copy Markdown
Author

What needs to change to make this a version 2 compose file?

I guess, there's nothing more needed than changing the first line to

version: '2'

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