forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable usage of S3 as a target for media upload & serving
* Add django-storages and settings to use S3 for media * Split up docker-compose so local customizations are easier
- Loading branch information
Showing
7 changed files
with
82 additions
and
32 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,30 @@ | ||
client_build: | ||
build: . | ||
dockerfile: Dockerfile-client_build | ||
ports: | ||
- "9988:9988" | ||
volumes: | ||
- .:/app | ||
environment: | ||
- NODE_ENV=development | ||
command: | ||
./bin/run-client-build.sh | ||
server: | ||
build: . | ||
dockerfile: Dockerfile-server | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- .:/app | ||
command: | ||
./bin/run-dev.sh | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- PYTHONDONTWRITEBYTECODE=1 | ||
- DATABASE_URL=postgres://postgres@db/postgres | ||
- DEBUG=True | ||
- ALLOWED_HOSTS=localhost,127.0.0.1, | ||
- SECRET_KEY=59114b6a-2858-4caf-8878-482a24ee9542 | ||
- FXA_ACCESS_TOKEN_URL=https://oauth-stable.dev.lcip.org/v1/token | ||
- FXA_AUTHORIZE_URL=https://oauth-stable.dev.lcip.org/v1/authorization | ||
- FXA_PROFILE_URL=https://stable.dev.lcip.org/profile/v1/profile |
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,18 @@ | ||
db: | ||
image: postgres:9.3 | ||
client_build: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: client_build | ||
server: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: server | ||
links: | ||
- db | ||
environment: | ||
- DEFAULT_FILE_STORAGE=storages.backends.s3boto.S3BotoStorage | ||
- AWS_ACCESS_KEY_ID={your access key id goes here} | ||
- AWS_SECRET_ACCESS_KEY={your secret access key goes here} | ||
- AWS_STORAGE_BUCKET_NAME={your bucket name here} | ||
- MEDIA_URL=http://{your bucket name here}.s3.amazonaws.com/ |
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,36 +1,13 @@ | ||
db: | ||
image: postgres:9.3 | ||
client_build: | ||
build: . | ||
dockerfile: Dockerfile-client_build | ||
ports: | ||
- "9988:9988" | ||
volumes: | ||
- .:/app | ||
environment: | ||
- NODE_ENV=development | ||
command: | ||
./bin/run-client-build.sh | ||
extends: | ||
file: docker-compose-base.yml | ||
service: client_build | ||
server: | ||
build: . | ||
dockerfile: Dockerfile-server | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- .:/app | ||
extends: | ||
file: docker-compose-base.yml | ||
service: server | ||
links: | ||
- db | ||
- client_build | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- PYTHONDONTWRITEBYTECODE=1 | ||
- DATABASE_URL=postgres://postgres@db/postgres | ||
- DEBUG=True | ||
- ALLOWED_HOSTS=localhost,127.0.0.1, | ||
- SECRET_KEY=59114b6a-2858-4caf-8878-482a24ee9542 | ||
- ADDON_URL=https://github.com/mozilla/idea-town-addon/blob/master/dist/idea-town-addon-0.0.1.xpi?raw=true | ||
- FXA_ACCESS_TOKEN_URL=https://oauth-stable.dev.lcip.org/v1/token | ||
- FXA_AUTHORIZE_URL=https://oauth-stable.dev.lcip.org/v1/authorization | ||
- FXA_PROFILE_URL=https://stable.dev.lcip.org/profile/v1/profile | ||
command: | ||
./bin/run-dev.sh |
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