- start service:
docker-compose up
- run command in faraday-server container:
faraday-manage create-superuser
- login to faraday web http://127.0.0.1:5985 。
| 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: |
docker-compose up
faraday-manage create-superuser
Hero! Thanks