switches to public docker images

This commit is contained in:
Christian Beutel
2024-03-15 23:20:04 +01:00
parent 38a5bf1df4
commit 19d3013cf9
4 changed files with 22 additions and 20 deletions

5
.gitignore vendored
View File

@@ -1,10 +1,11 @@
.DS_Store .DS_Store
.vscode/ .vscode/
db/pocketbase db/pocketbase*
search/meilisearch search/meilisearch
search/data.ms search/data.ms
search/dumps search/dumps
run.sh run.sh
build.sh

View File

@@ -22,13 +22,13 @@ The recommended and quickest way to install wanderer is using docker compose:
``` bash ``` bash
# clone the git repository # clone the git repository
git clone https://github.com/Flomp/wanderer wget https://raw.githubusercontent.com/Flomp/wanderer/main/docker-compose.yml
cd wanderer
# build and launch via docker compose # build and launch via docker compose
docker compose up -d --build docker compose up -d
``` ```
You can now access the frontend at localhost:3000. The first startup can take up to 90 seconds after which you can access the frontend at localhost:3000.
> Note: if you are using wanderer in a production environment make sure to change the MEILI_MASTER_KEY. > Note: if you are using wanderer in a production environment make sure to change the MEILI_MASTER_KEY.

View File

@@ -1,17 +1,11 @@
FROM golang:1.22-alpine FROM alpine:3.16
RUN apk add build-base
WORKDIR / WORKDIR /
COPY go.mod ./
COPY go.sum ./
COPY migrations ./migrations COPY migrations ./migrations
RUN go mod download COPY ./pocketbase_arm64 /pocketbase
RUN chmod +x /pocketbase
COPY *.go ./
RUN go build -o /pocketbase
ENV MEILI_URL=http://localhost:7700 ENV MEILI_URL=http://localhost:7700
ENV MEILI_MASTER_KEY= ENV MEILI_MASTER_KEY=

View File

@@ -7,7 +7,7 @@ x-common-env: &cenv
services: services:
search: search:
container_name: wanderer-search container_name: wanderer-search
build: ./search image: flomp/wanderer-search
environment: environment:
<<: *cenv <<: *cenv
MEILI_NO_ANALYTICS: true MEILI_NO_ANALYTICS: true
@@ -17,14 +17,19 @@ services:
- wanderer - wanderer
volumes: volumes:
- ./data/data.ms:/meili_data/data.ms - ./data/data.ms:/meili_data/data.ms
restart: unless-stopped restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:7700/health || exit 1
interval: 15s
retries: 10
start_period: 20s
timeout: 10s
db: db:
container_name: wanderer-db container_name: wanderer-db
build: ./db image: flomp/wanderer-db
depends_on: depends_on:
search: search:
condition: service_started condition: service_healthy
environment: environment:
<<: *cenv <<: *cenv
ports: ports:
@@ -36,8 +41,10 @@ services:
- ./data/pb_data:/pb_data - ./data/pb_data:/pb_data
web: web:
container_name: wanderer-web container_name: wanderer-web
build: ./web image: flomp/wanderer-web
depends_on: depends_on:
search:
condition: service_healthy
db: db:
condition: service_started condition: service_started
environment: environment: