Skip to content

Instantly share code, notes, and snippets.

@barmic
Created May 27, 2019 11:59
Show Gist options
  • Save barmic/a549d24be07248d31c9c79c7f49944be to your computer and use it in GitHub Desktop.
Save barmic/a549d24be07248d31c9c79c7f49944be to your computer and use it in GitHub Desktop.
deploiement barmic.eu
version: '3'
services:
loadbalancer:
image: traefik:1.7
restart: always
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_network"
- "traefik.port=8080"
#- "traefik.entryPoint=https"
- "traefik.backend=traefik"
- "traefik.frontend.rule=Host:barmic.eu"
# cotize stack
cotize:
image: barmic/tiragealea
ports:
- "5000:5000"
environment:
MAIL_PORT: example
labels:
- "traefik.enable=true"
- "traefik.backend=cotize"
- "traefik.domain=cotize.barmic.eu"
mongo:
image: "mongo:4.0"
restart: always
volumes:
- /tmp/mongo:/data/db
labels:
- "traefik.enable=false"
# nextcloud stack
next:
image: nextcloud:fpm
labels:
- "traefik.enable=true"
- "traefik.backend=nextcloud"
- "traefik.domain=cloud.barmic.eu"
mysql:
image: mariadb:10
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextuser
MYSQL_PASSWORD: nextpassword
volumes:
- /tmp/maria:/var/lib/mysql
labels:
- "traefik.enable=false"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment