branch-deploy-testing/compose-parent.yaml
Andreas Svanberg 06d493e720
Some checks failed
Deploy to branch.dsv.su.se / deploy (pull_request) Failing after 29s
Documentation lies and extend depends_on fails instead of ignores
2024-10-30 13:40:52 +01:00

41 lines
846 B
YAML

services:
web:
build:
context: .
restart: always
ports:
- "8080:8080"
db:
image: mariadb:latest
restart: always
environment:
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
MARIADB_ROOT_HOST: "localhost"
MARIADB_DATABASE: "branch"
MARIADB_USER: "branch"
MARIADB_PASSWORD: "branch"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
start_period: 5s
interval: 3s
timeout: 1s
retries: 5
# volumes:
# - type: bind
# source: ./db/
# target: /docker-entrypoint-initdb.d/
# read_only: true
oauth2:
build:
context: https://github.com/dsv-su/toker.git
dockerfile: embedded.Dockerfile
restart: always
ports:
- '59999:8080'
environment:
- CLIENT_ID=blog
- CLIENT_SECRET=s3cr3t