Skip to content

Instantly share code, notes, and snippets.

@chroming
Last active November 17, 2022 16:14
Show Gist options
  • Save chroming/bd461dcee9974edfcf00b6558af4bdcc to your computer and use it in GitHub Desktop.
Save chroming/bd461dcee9974edfcf00b6558af4bdcc to your computer and use it in GitHub Desktop.
run faraday(https://github.com/infobyte/faraday) with docker-compose
version: "3"
services:
postgres:
image: postgres:9.6
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=pg_password
- POSTGRES_DB=faraday
volumes:
- "postgres-data:/var/lib/postgresql/data"
restart: unless-stopped
faraday-server:
image: faradaysec/faraday:latest
ports:
- "5985:5985"
volumes:
- faraday-server-data:/faraday-storage
- faraday-server-log:/home/faraday/.faraday/logs/
environment:
- LISTEN_ADDR=0.0.0.0
- PGSQL_HOST=postgres
- PGSQL_USER=postgres
- PGSQL_PASSWD=pg_password
- PGSQL_DBNAME=faraday
depends_on:
- faraday-server-db
restart: unless-stopped
volumes:
postgres-data:
faraday-server-data:
faraday-server-log:
  1. start service:

docker-compose up

  1. run command in faraday-server container:

faraday-manage create-superuser

  1. login to faraday web http://127.0.0.1:5985
@elianbarci
Copy link

Hero! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment