-
-
Notifications
You must be signed in to change notification settings - Fork 273
/
docker-compose.yml
34 lines (32 loc) · 1.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
onedev:
image: 1dev/server:latest
container_name: onedev
hostname: onedev
restart: unless-stopped
ports:
- 6610:6610/tcp
expose:
- 6610
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/onedev:/opt/onedev
environment:
- initial_user=1dev # only used for init, may change
- initial_password=onedev # only used for init, may change
- [email protected] # 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
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
# - traefik.http.routers.onedev.middlewares=local-ipwhitelist@file,basic-auth@file
#networks:
# proxy:
# external: true