Initial commit of docker files.
This commit is contained in:
parent
2b74ae2021
commit
9b56f66c76
8 changed files with 115 additions and 0 deletions
51
docker-compose.yml
Normal file
51
docker-compose.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
version: "3.7"
|
||||
|
||||
volumes:
|
||||
xbs-db-data:
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: "xbs-db"
|
||||
environment:
|
||||
- "MONGO_INITDB_DATABASE=xbrowsersync"
|
||||
- "MONGO_INITDB_ROOT_PASSWORD=$XBS_DB_PASSWORD"
|
||||
- "MONGO_INITDB_ROOT_USERNAME=$XBS_DB_USERNAME"
|
||||
image: "mongo:4.0.4"
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
ports:
|
||||
- "27017:27017"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- "xbs-db-data:/data/db"
|
||||
- "./mongoconfig.js:/docker-entrypoint-initdb.d/mongoconfig.js"
|
||||
api:
|
||||
container_name: "xbs-api"
|
||||
depends_on:
|
||||
- "db"
|
||||
environment:
|
||||
- "XBROWSERSYNC_DB_PWD=$XBS_DB_PASSWORD"
|
||||
- "XBROWSERSYNC_DB_USER=$XBS_DB_USERNAME"
|
||||
image: "xbrowsersync-api:1.1.6"
|
||||
labels:
|
||||
- "traefik.frontend.rule=Host:$XBS_API_HOSTNAME"
|
||||
- "traefik.port=8080"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- "./settings.json:/usr/src/api/config/settings.json"
|
||||
reverse-proxy:
|
||||
command: "--api --docker"
|
||||
container_name: "xbs-reverse-proxy"
|
||||
depends_on:
|
||||
- "api"
|
||||
image: traefik:1.7.5-alpine
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
ports:
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "./acme.json:/acme.json"
|
||||
- "./traefik.toml:/traefik.toml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue