Skip to content

Commit 1271356

Browse files
authored
Publish dev docker images from main (#789)
* Publish unstable docker images from main * Update and rename release_unstable.yaml to release_dev.yaml * Add dev docker compose
1 parent 677f2bc commit 1271356

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

.github/workflows/release_dev.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish dev Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docker-build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.22'
20+
21+
- name: Login to GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Build Docker Images
32+
run: |
33+
docker buildx build db/ --no-cache -t ghcr.io/open-wanderer/wanderer-db:dev --platform=linux/amd64,linux/arm64 --push
34+
docker buildx build web/ --no-cache -t ghcr.io/open-wanderer/wanderer-web:dev --platform=linux/amd64,linux/arm64 --push

docker/docker-compose.dev.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
version: '3'
2+
3+
services:
4+
search:
5+
image: getmeili/meilisearch:v1.11.3
6+
environment:
7+
MEILI_URL: http://search:7700
8+
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:?}
9+
MEILI_NO_ANALYTICS: "true"
10+
volumes:
11+
- meili_data:/meili_data
12+
restart: unless-stopped
13+
healthcheck:
14+
test: curl --fail http://localhost:7700/health || exit 1
15+
interval: 15s
16+
retries: 10
17+
start_period: 20s
18+
timeout: 10s
19+
db:
20+
image: ghcr.io/open-wanderer/wanderer-db:dev
21+
depends_on:
22+
search:
23+
condition: service_healthy
24+
environment:
25+
MEILI_URL: http://search:7700
26+
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:?}
27+
POCKETBASE_ENCRYPTION_KEY: ${POCKETBASE_ENCRYPTION_KEY:?}
28+
ORIGIN: ${ORIGIN:?}
29+
restart: unless-stopped
30+
volumes:
31+
- pb_data:/pb_data
32+
healthcheck:
33+
test: ["CMD", "/curl", "--fail", "http://localhost:8090/health"]
34+
interval: 15s
35+
retries: 10
36+
start_period: 20s
37+
timeout: 10s
38+
web:
39+
image: ghcr.io/open-wanderer/wanderer-web:dev
40+
depends_on:
41+
search:
42+
condition: service_healthy
43+
db:
44+
condition: service_healthy
45+
environment:
46+
MEILI_URL: http://search:7700
47+
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:?}
48+
ORIGIN: ${ORIGIN:?}
49+
BODY_SIZE_LIMIT: Infinity
50+
PUBLIC_POCKETBASE_URL: http://db:8090
51+
PUBLIC_DISABLE_SIGNUP: "false"
52+
UPLOAD_FOLDER: /app/uploads
53+
UPLOAD_USER:
54+
UPLOAD_PASSWORD:
55+
PUBLIC_OVERPASS_API_URL: https://overpass-api.de
56+
PUBLIC_VALHALLA_URL: https://valhalla1.openstreetmap.de
57+
PUBLIC_NOMINATIM_URL: https://nominatim.openstreetmap.org
58+
volumes:
59+
- uploads:/app/uploads
60+
# - ./data/about.md:/app/build/client/md/about.md
61+
expose:
62+
- "3000"
63+
restart: unless-stopped
64+
healthcheck:
65+
test: ["CMD", "/curl", "--fail", "http://localhost:3000/"]
66+
interval: 15s
67+
retries: 10
68+
start_period: 20s
69+
timeout: 10s
70+
71+
volumes:
72+
meili_data:
73+
pb_data:
74+
uploads:

0 commit comments

Comments
 (0)