-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert Dockerfile to multistage build Takes advantage of layer caching for kinto admin build and python dependency downloading * replace psycopg2-binary with psycopg2 in `requirements.txt` This is because kinto[postgresql] requires `psycopg2` specifically * Nest docker-compose services in "services" key
- Loading branch information
1 parent
a9e46e5
commit 46c84bb
Showing
3 changed files
with
53 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
db: | ||
image: postgres | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
cache: | ||
image: library/memcached | ||
web: | ||
image: kinto/kinto-server | ||
links: | ||
- db | ||
- cache | ||
ports: | ||
- "8888:8888" | ||
environment: | ||
KINTO_CACHE_BACKEND: kinto.core.cache.memcached | ||
KINTO_CACHE_HOSTS: cache:11211 cache:11212 | ||
KINTO_STORAGE_BACKEND: kinto.core.storage.postgresql | ||
KINTO_STORAGE_URL: postgresql://postgres:postgres@db/postgres | ||
KINTO_PERMISSION_BACKEND: kinto.core.permission.postgresql | ||
KINTO_PERMISSION_URL: postgresql://postgres:postgres@db/postgres | ||
version: "3" | ||
services: | ||
db: | ||
image: postgres:14 | ||
environment: | ||
POSTGRES_NAME: postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
cache: | ||
image: memcached:1 | ||
web: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
image: kinto/kinto-server:latest | ||
depends_on: | ||
- db | ||
- cache | ||
ports: | ||
- "8888:8888" | ||
environment: | ||
KINTO_CACHE_BACKEND: kinto.core.cache.memcached | ||
KINTO_CACHE_HOSTS: cache:11211 cache:11212 | ||
KINTO_STORAGE_BACKEND: kinto.core.storage.postgresql | ||
KINTO_STORAGE_URL: postgresql://postgres:postgres@db/postgres | ||
KINTO_PERMISSION_BACKEND: kinto.core.permission.postgresql | ||
KINTO_PERMISSION_URL: postgresql://postgres:postgres@db/postgres |
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