Skip to content

Commit fedb6c5

Browse files
Merge pull request #24568 from opf/squashtm-docker
Add docker configuration for SquashTM
2 parents c93d688 + f25fb6e commit fedb6c5

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

docker/dev/squashtm/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Setup guide
2+
3+
A minimal setup guide for using a local SquashTM inside a docker stack. The example compose file is connected to the standard setup of the [TLS-ready](https://www.openproject.org/docs/development/development-environment/docker/#tls-support) stack with `traefik`.
4+
5+
## First steps
6+
7+
- Up the docker stack with `docker compose up -d`
8+
- Wait for initialization to finish (this takes some time, wait for `docker compose logs -f web` to calm down)
9+
- Go to https://squashtm.local/squash (mind the `/squash` at the end)
10+
- Have fun!
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
services:
2+
web:
3+
image: squashtest/squash
4+
restart: unless-stopped
5+
networks:
6+
- default
7+
- gateway
8+
environment:
9+
SPRING_PROFILES_ACTIVE: postgresql
10+
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/squashtm
11+
SPRING_DATASOURCE_USERNAME: ${SQUASH_DB_USER:-squashtm}
12+
SPRING_DATASOURCE_PASSWORD: ${SQUASH_DB_PASSWORD:-AVeryS3cureP4ssw0rd}
13+
SQUASH_REST_API_JWT_SECRET: Ym9uam91cmplc3Vpc2RldmVsb3BwZXVzZXN1cnNxdWFzaHRtZXRub3Vzc29tbWVzZW5sYW5uZWUyMDI0ISEhIS
14+
VIRTUAL_HOST: squashtm.${OPENPROJECT_DOCKER_DEV_TLD:-local}
15+
labels:
16+
- "traefik.enable=true"
17+
- "traefik.http.routers.squashtm.rule=Host(`squashtm.${OPENPROJECT_DOCKER_DEV_TLD:-local}`)"
18+
- "traefik.http.routers.squashtm.entrypoints=websecure"
19+
depends_on:
20+
- db
21+
22+
db:
23+
image: postgres:17
24+
environment:
25+
POSTGRES_DB: squashtm
26+
POSTGRES_USER: ${SQUASH_DB_USER:-squashtm}
27+
POSTGRES_PASSWORD: ${SQUASH_DB_PASSWORD:-AVeryS3cureP4ssw0rd}
28+
volumes:
29+
- "pg_data:/var/lib/postgresql/data"
30+
31+
networks:
32+
gateway:
33+
external: true
34+
name: gateway
35+
36+
volumes:
37+
pg_data:

docker/dev/tls/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
- openproject.${OPENPROJECT_DOCKER_DEV_TLD:-local}
3030
- openproject-assets.${OPENPROJECT_DOCKER_DEV_TLD:-local}
3131
- nextcloud.${OPENPROJECT_DOCKER_DEV_TLD:-local}
32+
- squashtm.${OPENPROJECT_DOCKER_DEV_TLD:-local}
3233
- xwiki.${OPENPROJECT_DOCKER_DEV_TLD:-local}
3334
- gitlab.${OPENPROJECT_DOCKER_DEV_TLD:-local}
3435
- keycloak.${OPENPROJECT_DOCKER_DEV_TLD:-local}

0 commit comments

Comments
 (0)