-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose based setup for local dev (#581)
* add docker-compose based setup for local dev - pdns (auth + resolver) - postgresql * add ipfs docker container * doc / config updates * env.yaml -> server.yaml
- Loading branch information
Showing
8 changed files
with
145 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: "3" | ||
services: | ||
postgres: | ||
image: postgres:11-alpine | ||
env_file: .env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- ./data/postgres:/var/lib/postgresql/data | ||
dns-auth: | ||
image: powerdns/pdns-auth-44 | ||
command: --local-address=0.0.0.0 --local-port=5300 | ||
user: root | ||
env_file: .env | ||
ports: | ||
- "5300:5300" | ||
- "5300:5300/udp" | ||
- "8081:8081" | ||
networks: | ||
default: | ||
ipv4_address: 172.25.0.6 | ||
dns-recursor: | ||
image: powerdns/pdns-recursor-44 | ||
command: --forward-zones=${BASE_DOMAIN}=172.25.0.6:5300,${USER_DOMAIN}=172.25.0.6:5300,${APP_DOMAIN}=172.25.0.6:5300 --forward-zones-recurse=.=1.1.1.1 --local-address=0.0.0.0 --local-port=53 | ||
env_file: .env | ||
ports: | ||
- "53:53" | ||
- "53:53/udp" | ||
- "8082:8082" # HTTP API for the recursor | ||
ipfs: | ||
image: ipfs/go-ipfs:v0.11.0 | ||
ports: | ||
- "4001:4001" | ||
- "5001:5001" | ||
- "8080:8080" | ||
volumes: | ||
- ./data/ipfs:/data/ipfs | ||
networks: | ||
default: | ||
driver: bridge | ||
ipam: | ||
config: | ||
# defining the network range and IP for the authoritative server is only necessary in | ||
# specific cases (e.g. to avoid breaking networking on some servers, most do fine without) | ||
- subnet: 172.25.0.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=postgres | ||
POSTGRES_DB=web_api | ||
PDNS_RECURSOR_API_KEY=changeme | ||
PDNS_AUTH_API_KEY=changeme | ||
BASE_DOMAIN=runfission.test | ||
USER_DOMAIN=fissionuser.test | ||
APP_DOMAIN=fissionapp.test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: fission-web-server | ||
version: "2.18.0.0" | ||
version: "2.19.0.0" | ||
category: API | ||
author: | ||
- Brooklyn Zelenka | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
web: | ||
host: http://runfission.test | ||
port: 1337 | ||
tls: false | ||
environment: localhost | ||
pretty: true | ||
monitor: false | ||
useEKG: false | ||
zone_id: runfission.test. | ||
|
||
ipfs: | ||
timeout: 10 | ||
urls: | ||
- http://localhost:5001 | ||
remotePeers: | ||
- /ip4/127.0.0.1/tcp/4001/p2p/12D3KooWMQSgdfa4tUrDhkFx4zP3ZpgT1ryj9KH5RGUae62Vsc7y | ||
|
||
storage: | ||
stripe_count: 4 | ||
conns_per_stripe: 50 | ||
conn_ttl: 10 | ||
postgresql: | ||
host: localhost | ||
database: web_api | ||
username: postgres | ||
password: postgres | ||
|
||
auth: | ||
fission_did: did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB | ||
|
||
aws: | ||
mock_route53: true | ||
access_key: FAKEKEY | ||
secret_key: FAKEKEY | ||
zone_id: FAKE | ||
|
||
pdns: | ||
api_url: http://localhost:8081 | ||
api_key: changeme | ||
|
||
fission_file_system: | ||
base_user_data_root_domain: fissionuser.test | ||
base_user_data_zone_id: fissionuser.test. | ||
default_data_cid: Qmc5m94Gu7z62RC8waSKkZUrCCBJPyHbkpmGzEePxy2oXJ # empty string | ||
|
||
web_app: | ||
base_domain_name: fissionapp.test | ||
base_aws_zone_id: fissionapp.test. | ||
placeholder_cid: QmRVvvMeMEPi1zerpXYH9df3ATdzuB63R1wf3Mz5NS5HQN # Fission logo on a blank page | ||
live_drive_url: drive.fission.codes | ||
|
||
send_in_blue: | ||
api_key: xkeysib-KEY | ||
base_url: https://api.sendinblue.com | ||
verification_email_template_id: 17 | ||
recovery_email_template_id: 26 | ||
recovery_app_url: https://dashboard.fission.codes/recover/ |