Compose-Examples/examples/onedev/docker-compose.yml

35 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-02-23 00:01:32 +00:00
services:
2023-02-23 00:01:32 +00:00
onedev:
image: 1dev/server:latest
container_name: onedev
hostname: onedev
restart: unless-stopped
ports:
- 6610:6610/tcp
expose:
- 6610
2023-02-23 00:01:32 +00:00
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
2023-02-25 20:53:14 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/onedev:/opt/onedev
2023-02-23 00:01:32 +00:00
environment:
- initial_user=1dev # only used for init, may change
- initial_password=onedev # only used for init, may change
- initial_email=onedev@example.com # only used for init, may change
- initial_server_url=http://localhost:6610 # adjust
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.http.routers.onedev.rule=Host(`onedev.example.com`)
# - traefik.http.services.onedev.loadbalancer.server.port=6610
2023-02-23 00:01:32 +00:00
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
# - traefik.http.routers.onedev.middlewares=local-ipwhitelist@file,basic-auth@file
#networks:
# proxy:
# external: true