Upgrade to docker-compose.yml v2

This deprecates older docker-compose versions and would require >=v1.6.0
to run.
This commit is contained in:
Kelvin Chen 2016-02-05 12:31:07 -05:00
parent 2578827aa8
commit 09c87b8b30
2 changed files with 79 additions and 61 deletions

View File

@ -23,7 +23,7 @@ if you do this.
## Running ## Running
```sh ```sh
$ docker-compose pull $ docker-compose pull
$ docker-compose --x-networking up -d $ docker-compose up -d
``` ```
Make sure you install the dependencies and finish configuration before doing Make sure you install the dependencies and finish configuration before doing
this. this.
@ -33,7 +33,7 @@ You may optionally build the images yourself instead of pulling by running
## Dependencies ## Dependencies
- [Docker](https://github.com/docker/docker) - [Docker](https://github.com/docker/docker)
- [Docker Compose](https://github.com/docker/compose) - [Docker Compose](https://github.com/docker/compose) >=v1.6.0
## Configuration ## Configuration
Copy the `config.default` file to `config` and change the variables as desired. Copy the `config.default` file to `config` and change the variables as desired.

View File

@ -1,64 +1,82 @@
frontend: version: '2'
image: kelvinchen/seedbox:frontend
restart: always
net: seedbox
ports:
- "80:80"
- "443:443"
volumes:
- seedbox_config:/config
env_file:
- config
rtorrent: networks:
image: kelvinchen/seedbox:rtorrent main:
restart: always
net: seedbox
ports:
- "49161:49161"
- "49161:49161/udp"
- "6881:6881/udp"
volumes:
- seedbox_config:/config
- seedbox_torrents:/torrents
plex: volumes:
image: kelvinchen/seedbox:plex config:
restart: always driver: local
net: seedbox torrents:
ports: driver: local
- "32400:32400"
volumes:
- seedbox_config:/config
- seedbox_torrents:/torrents
sickrage: services:
image: kelvinchen/seedbox:sickrage frontend:
restart: always image: kelvinchen/seedbox:frontend
net: seedbox restart: always
volumes: networks:
- seedbox_config:/config - main
- seedbox_torrents:/torrents ports:
- "80:80"
- "443:443"
volumes:
- config:/config
env_file:
- config
syncthing: rtorrent:
image: kelvinchen/seedbox:syncthing image: kelvinchen/seedbox:rtorrent
restart: always restart: always
net: seedbox networks:
ports: - main
- "22000:22000" ports:
- "21027:21027/udp" - "49161:49161"
volumes: - "49161:49161/udp"
- seedbox_config:/config - "6881:6881/udp"
- seedbox_torrents:/torrents volumes:
- config:/config
- torrents:/torrents
openvpn: plex:
image: kelvinchen/seedbox:openvpn image: kelvinchen/seedbox:plex
restart: always restart: always
net: seedbox networks:
ports: - main
- "1194:1194/udp" ports:
volumes: - "32400:32400"
- seedbox_config:/config volumes:
- seedbox_torrents:/torrents - config:/config
cap_add: - torrents:/torrents
- NET_ADMIN
sickrage:
image: kelvinchen/seedbox:sickrage
restart: always
networks:
- main
volumes:
- config:/config
- torrents:/torrents
syncthing:
image: kelvinchen/seedbox:syncthing
restart: always
networks:
- main
ports:
- "22000:22000"
- "21027:21027/udp"
volumes:
- config:/config
- torrents:/torrents
openvpn:
image: kelvinchen/seedbox:openvpn
restart: always
networks:
- main
ports:
- "1194:1194/udp"
volumes:
- config:/config
- torrents:/torrents
cap_add:
- NET_ADMIN