Skip to content

Commit

Permalink
Merge pull request #996 from Gauvino/docker-compose
Browse files Browse the repository at this point in the history
Docker-compose: remove depracted line, watchtower and add container_name
  • Loading branch information
openbullet authored Jul 1, 2024
2 parents 510884c + 44d28c5 commit b39f01c
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
version: '3.3'
services:
openbullet2:
image: 'openbullet/openbullet2:latest'
container_name: openbullet2
restart: unless-stopped
ports:
- '8069:5000'
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
# Change UserData to the location of where you want UserData folder to be placed
# This currently assumes your on linux and want the folder in the same location as the docker-compose file
# You can set a windows dir like 'C:/OB2/UserData/:/app/UserData/' but it will always be 'local dir:docker dir'
- './UserData:/app/UserData/'
image: 'openbullet/openbullet2:latest'

# Watchtower will auto update OB2 for you when it sees a new release
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_INCLUDE_RESTARTING=true
labels:
- "com.centurylinklabs.watchtower.enable=true"
ports:
- '8069:5000'

volumes:
UserData:

0 comments on commit b39f01c

Please sign in to comment.