Skip to content

Commit

Permalink
Update example docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
henkelmax committed Dec 10, 2023
1 parent 19397e7 commit 18c8ecf
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docker_compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ docker build https://github.com/henkelmax/mod-update-server.git -t "mod-update-s
```

## Example Docker Compose Configuration

``` yml
version: "3.9"

Expand All @@ -17,12 +18,15 @@ services:
container_name: "update-server"
environment:
MASTER_KEY: "b13c2739-f6e4-4123-b486-8f44c3f53bac" # Change this to a secret value
DB_IP: "update-mongodb"
DB_IP: "update-postgres"
DB_NAME: "updates"
DB_USER: "postgres"
DB_PASSWORD: "supersecretpassword"
networks:
- "web"
- "update-server"
depends_on:
- "update-mongodb"
- "update-postgres"
labels:
- "traefik.enable=true"
- "traefik.http.routers.updateHttp.rule=Host(`update.maxhenkel.de`, `www.update.maxhenkel.de`)"
Expand All @@ -33,12 +37,16 @@ services:
- "traefik.http.routers.updateHttps.tls.certresolver=certHttp"
- "traefik.http.routers.updateHttps.tls=true"
- "traefik.http.services.update_service.loadbalancer.server.port=8088"
update-mongodb:
image: "mongo:6"
update-postgres:
image: "postgres:16"
restart: "always"
container_name: "update-mongodb"
container_name: "update-postgres"
environment:
POSTGRES_DB: "updates"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "supersecretpassword"
volumes:
- "/dockerdata/update-server/mongo:/data/db"
- "/dockerdata/update-server/postgres:/var/lib/postgresql/data"
networks:
- "update-server"
update-prometheus:
Expand Down Expand Up @@ -78,5 +86,4 @@ networks:
external: true
update-server:
internal: true

```

0 comments on commit 18c8ecf

Please sign in to comment.