2023-03-01 19:08:03 +00:00
|
|
|
version: '3.7'
|
2023-02-28 00:49:02 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
onedev:
|
2023-06-11 18:31:34 +00:00
|
|
|
image: 1dev/server:8.3.8
|
2023-02-28 00:49:02 +00:00
|
|
|
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
|
2023-03-01 19:08:03 +00:00
|
|
|
- hibernate_connection_password=${ONEDEV_DB_PASSWORD}
|
|
|
|
- initial_user=${ONEDEV_USERNAME}
|
|
|
|
- initial_password=${ONEDEV_PASSWORD}
|
|
|
|
- initial_email=${ONEDEV_EMAIL}
|
2023-02-28 00:49:02 +00:00
|
|
|
- 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
|
2023-03-01 19:08:03 +00:00
|
|
|
- '6611:6611'
|
2023-02-28 00:49:02 +00:00
|
|
|
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
|
2023-03-01 19:08:03 +00:00
|
|
|
- POSTGRES_PASSWORD=${ONEDEV_DB_PASSWORD}
|
2023-02-28 00:49:02 +00:00
|
|
|
- POSTGRES_DB=onedev
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|