Skip to content

Instantly share code, notes, and snippets.

@aohorodnyk
Created July 10, 2016 20:34
Show Gist options
  • Save aohorodnyk/7febfe655caee5a7e7256a9fbee9fd48 to your computer and use it in GitHub Desktop.
Save aohorodnyk/7febfe655caee5a7e7256a9fbee9fd48 to your computer and use it in GitHub Desktop.
version: '2'
services:
nginx:
restart: always
image: nginx:stable-alpine
ports:
- 80:80
- 443:443
volumes:
- ./conf.d/:/etc/nginx/conf.d/:ro
- /etc/localtime:/etc/localtime:ro
- /opt/docker/data/letsencrypt/conf:/etc/letsencrypt:ro
- /opt/docker/data/letsencrypt/html:/tmp/letsencrypt:ro
networks:
- gitlab
- letsencrypt
- jira
- confluence
letsencrypt:
restart: always
image: aohorodnyk/letsencrypt-webroot:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- /opt/docker/data/letsencrypt/conf:/etc/letsencrypt
- /opt/docker/data/letsencrypt/html:/tmp/letsencrypt
environment:
- DOMAINS=c.example.com,gitlab.c.example.com,registry.c.example.com,jira.c.example.com,confluence.c.example.com,stage.c.example.com
- EMAIL=anton@ohorodnyk.name
- WEBROOT_PATH=/tmp/letsencrypt
- EXP_LIMIT=30
- CHECK_FREQ=1
- CHOWN=1000
- ENV_TYPE=production
networks:
- letsencrypt
networks:
gitlab:
external:
name: gitlab_gitlab
jira:
external:
name: atlassian_jira
confluence:
external:
name: atlassian_confluence
letsencrypt:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment