All checks were successful
continuous-integration/drone/push Build is passing
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
version: "3"
|
|
|
|
networks:
|
|
tcpasted:
|
|
external: false
|
|
|
|
volumes:
|
|
pasted:
|
|
|
|
services:
|
|
pasted:
|
|
image: betaco.de/strom/rust-tcpaste-pasted:latest
|
|
init: true
|
|
container_name: tcp-pasted
|
|
environment:
|
|
- RUST_LOG=debug
|
|
- PASTED_BIND_MASK=[::]:9999
|
|
- DOMAIN=unsha.re
|
|
- DEST_DIR=/var/lib/pasted
|
|
restart: always
|
|
networks:
|
|
- tcpasted
|
|
volumes:
|
|
- type: volume
|
|
source: pasted
|
|
target: /var/lib/pasted
|
|
volume:
|
|
nocopy: true
|
|
ports:
|
|
- "9999:9999"
|
|
command: [ "/usr/local/bin/tcp-pasted" ]
|
|
|
|
erased:
|
|
image: betaco.de/strom/rust-tcpaste-pasted:latest
|
|
init: true
|
|
container_name: tcp-erased
|
|
environment:
|
|
- RUST_LOG=debug
|
|
- ERASED_BIND_MASK=[::]:10000
|
|
- DEST_DIR=/var/lib/pasted
|
|
restart: always
|
|
networks:
|
|
- tcpasted
|
|
volumes:
|
|
- type: volume
|
|
source: pasted
|
|
target: /var/lib/pasted
|
|
volume:
|
|
nocopy: true
|
|
ports:
|
|
- "10000:10000"
|
|
command: [ "/usr/local/bin/tcp-erased" ]
|
|
|
|
http:
|
|
image: betaco.de/strom/rust-tcpaste-http:latest
|
|
init: true
|
|
container_name: nginx
|
|
restart: always
|
|
networks:
|
|
- tcpasted
|
|
volumes:
|
|
- type: volume
|
|
source: pasted
|
|
target: /var/lib/pasted
|
|
volume:
|
|
nocopy: true
|
|
ports:
|
|
- "127.0.0.1:8080:8080"
|
|
|