Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Docker-compose.yml and .env #32

Open
cbytestech opened this issue Jan 2, 2022 · 1 comment
Open

Add: Docker-compose.yml and .env #32

cbytestech opened this issue Jan 2, 2022 · 1 comment

Comments

@cbytestech
Copy link

cbytestech commented Jan 2, 2022

I wasn't sure of what "volumes" would be needed for this, but a barebones docker-compose.yml has been started for this. I'm pulling some of the defaults from the previous docker project I was contributing to..

I realize a docker-compose might not be necessary for most, but I thought it would be a nice addition as I run a few containers on the same device, thinking I'm not alone.

Install docker-compose

version: "3.4"
services:
#  vpn:
#    container_name: vpn
#    image: dperson/openvpn-client:latest
#    cap_add:
#      - net_admin # required to modify network interfaces
#    restart: unless-stopped
#    volumes:
#      - /dev/net:/dev/net:z # tun device
#      - ${ROOT}/config/vpn:/vpn # OpenVPN configuration
#    security_opt:
#      - label:disable
#    ports:
#      - 8112:8112 # port for deluge web UI to be reachable from local network
#    command: '-f "" -r 192.168.1.0/24' # enable firewall and route local network traffic

osint:
  container_name: osint
  image:  vaultsecurity/osint:latest
  restart: unless-stopped
  network_mode: host
  environment:
    - PUID=${PUID} # default user id, defined in .env
    - PGID=${PGID} # default group id, defined in .env
    - TZ=${TZ} # timezone, defined in .env
  volumes:
    - ${ROOT}/downloads:/downloads # downloads folder
    - ${ROOT}/config/osint:/config # config files

Also in a .env file in the same directory...

# Your timezone, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=America/New_York
# UNIX PUID and PGID, find with: id $USER
PUID=typically 1000
PGID=typically 1000
# The directory where data and configuration will be stored.
ROOT=/dir to the folder where .env and compose file are

@cbytestech cbytestech changed the title Sug: Docker-compose.yml Add: Docker-compose.yml and .env Jan 2, 2022
@Jul10l1r4
Copy link
Contributor

Gg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants