tcpasters/oci/oci-compose.yml
Thorsten Schubert 354ea9b566
All checks were successful
continuous-integration/drone/push Build is passing
Container build script modifications
2022-10-05 12:06:48 +00:00

72 lines
1.5 KiB
YAML

# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright © 2022 Thorsten Schubert <tschubert@bafh.org>
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"