Skip to content
Snippets Groups Projects
Commit 7288010e authored by Daniel Wiesenberg's avatar Daniel Wiesenberg
Browse files

Move additional files into dedicated folder and make build the def...

...fault in the compose files.
parent 31c72566
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
########################## BUILD IMAGE ##########################
# Alpine build image to build Conduits statically compiled binary
# Alpine build image to build Conduit's statically compiled binary
FROM alpine:3.12 as builder
# Specifies if the local project is build or if Conduit gets build
......@@ -51,7 +51,7 @@ LABEL org.opencontainers.image.created=${CREATED} \
org.opencontainers.image.vendor="Conduit Contributors" \
org.opencontainers.image.description="A Matrix homeserver written in Rust" \
org.opencontainers.image.url="https://conduit.rs/" \
org.opencontainers.image.revision=$GIT_REF \
org.opencontainers.image.revision=${GIT_REF} \
org.opencontainers.image.source="https://git.koesters.xyz/timo/conduit.git" \
org.opencontainers.image.documentation.="" \
org.opencontainers.image.licenses="AGPL-3.0" \
......
......@@ -3,17 +3,18 @@ version: '3'
services:
homeserver:
### If you already built the Conduit image with 'docker build', then you are ready to
### go. Otherwise, you need to comment the 'image' line and uncomment the 'build' lines
### and run: CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
image: conduit_homeserver:latest
# build:
# context: .
# args:
# CREATED:
# VERSION:
# LOCAL: "false"
# GIT_REF: HEAD
### If you already built the Conduit image with 'docker build', then you can uncomment the
### 'image' line and comment out the 'build' option.
# image: conduit_homeserver:latest
### If you want meaningful labels in you built Conduit image, you should run docker-compose like this:
### CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
build:
context: .
args:
CREATED:
VERSION:
LOCAL: "false"
GIT_REF: HEAD
restart: unless-stopped
ports:
- 8448:8000
......
......@@ -11,11 +11,12 @@ services:
- "traefik.http.routers.to-conduit.tls=true"
- "traefik.http.routers.to-conduit.tls.certresolver=letsencrypt"
element-web:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network
### Uncomment this if you uncommented Element-Web App in the docker-compose.yml
# element-web:
# labels:
# - "traefik.enable=true"
# - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network
- "traefik.http.routers.to-element-web.rule=Host(`<SUBDOMAIN>.<DOMAIN>`)" # Change to the address on which Element-Web is hosted
- "traefik.http.routers.to-element-web.tls=true"
- "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt"
# - "traefik.http.routers.to-element-web.rule=Host(`<SUBDOMAIN>.<DOMAIN>`)" # Change to the address on which Element-Web is hosted
# - "traefik.http.routers.to-element-web.tls=true"
# - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt"
......@@ -3,17 +3,18 @@ version: '3'
services:
homeserver:
### If you already built the Conduit image with 'docker build', then you are ready to
### go. Otherwise, you need to comment the 'image' line and uncomment the 'build' lines
### and run: CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
image: conduit_homeserver:latest
# build:
# context: .
# args:
# CREATED:
# VERSION:
# LOCAL: false
# GIT_REF: HEAD
### If you already built the Conduit image with 'docker build', then you can uncomment the
### 'image' line and comment out the 'build' option.
# image: conduit_homeserver:latest
### If you want meaningful labels in you built Conduit image, you should run docker-compose like this:
### CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
build:
context: .
args:
CREATED:
VERSION:
LOCAL: false
GIT_REF: HEAD
restart: unless-stopped
volumes:
- db:/srv/conduit/.local/share/conduit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment