48c259da5a
* chore(deps): update 1dev/server docker tag to v8.2.3 * Update app version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
onedev:
|
|
image: 1dev/server:8.2.3
|
|
container_name: onedev
|
|
environment:
|
|
- hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
|
|
- hibernate_connection_driver_class=org.postgresql.Driver
|
|
- hibernate_connection_url=jdbc:postgresql://onedev-db:5432/onedev
|
|
- hibernate_connection_username=tipi
|
|
- hibernate_connection_password=${ONEDEV_DB_PASSWORD}
|
|
- initial_user=${ONEDEV_USERNAME}
|
|
- initial_password=${ONEDEV_PASSWORD}
|
|
- initial_email=${ONEDEV_EMAIL}
|
|
- initial_server_url=${APP_DOMAIN}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/onedev:/opt/onedev
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
ports:
|
|
- ${APP_PORT}:6610
|
|
- '6611:6611'
|
|
depends_on:
|
|
- onedev-db
|
|
networks:
|
|
- tipi_main_network
|
|
labels:
|
|
traefik.enable: ${APP_EXPOSED}
|
|
traefik.http.routers.onedev.rule: Host(`${APP_DOMAIN}`)
|
|
traefik.http.routers.onedev.entrypoints: websecure
|
|
traefik.http.routers.onedev.service: onedev
|
|
traefik.http.routers.onedev.tls.certresolver: myresolver
|
|
traefik.http.services.onedev.loadbalancer.server.port: 6610
|
|
|
|
onedev-db:
|
|
container_name: onedev-db
|
|
image: postgres:14
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=tipi
|
|
- POSTGRES_PASSWORD=${ONEDEV_DB_PASSWORD}
|
|
- POSTGRES_DB=onedev
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- tipi_main_network
|