Skip to content

Commit

Permalink
Update gitpod to cache_from docker.cdot.systems
Browse files Browse the repository at this point in the history
  • Loading branch information
TDDR committed Mar 31, 2022
1 parent 9d86ea7 commit 3119e80
Showing 1 changed file with 82 additions and 4 deletions.
86 changes: 82 additions & 4 deletions docker/gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ version: '3'
services:
# API Gateway
nginx:
build:
context: ../src/web/app
cache_from:
- docker.cdot.systems/nginx:buildcache
# next.js needs build-time access to a number of API URL values, forward as ARGs
args:
# Web front-end URL
- WEB_URL=${WEB_URL}
# Telescope 1.0 API URL
- API_URL=${API_URL}
# Telescope 2.0 Microservice URLs
- IMAGE_URL=${IMAGE_URL}
- SSO_URL=${SSO_URL}
- POSTS_URL=${POSTS_URL}
- SEARCH_URL=${SEARCH_URL}
- FEED_DISCOVERY_URL=${FEED_DISCOVERY_URL}
- STATUS_URL=${STATUS_URL}
volumes:
- ../config/nginx.conf.development.template:/etc/nginx/nginx.conf
ports:
Expand Down Expand Up @@ -63,16 +80,77 @@ services:
ports:
- '9200:9200'

parser:
build:
context: ../src/api/parser
cache_from:
- docker.cdot.systems/parser:buildcache
depends_on:
- elasticsearch
- traefik
- redis

status:
build:
context: ../src/api/status
cache_from:
- docker.cdot.systems/status:buildcache
ports:
- '1111:1111'
environment:
- POSTS_URL=http://posts:5555

image:
build:
context: ../src/api/image
cache_from:
- docker.cdot.systems/image:buildcache

sso:
build:
context: ../src/api/sso
cache_from:
- docker.cdot.systems/sso:buildcache
environment:
# In development and testing, the SSO service needs to contact the Supabase
# service directly via Docker vs through the http://localhost/v1/supabase domain.
- SUPABASE_URL=http://kong:8000
depends_on:
- test-web-content
- traefik
- login

search:
build:
context: ../src/api/search
cache_from:
- docker.cdot.systems/search:buildcache

posts:
build:
context: ../src/api/posts
cache_from:
- docker.cdot.systems/posts:buildcache

feed-discovery:
image: docker.cdot.systems/feed-discovery
build:
context: ../src/api/feed-discovery
cache_from:
- docker.cdot.systems/feed-discovery:buildcache
restart: unless-stopped

parser:
planet:
build:
context: ../src/api/parser
context: ../src/api/planet
cache_from:
- docker.cdot.systems/parser:buildcache
- docker.cdot.systems/planet:buildcache
ports:
- '9876:9876'
environment:
- POSTS_URL=http://posts:${POSTS_PORT:-5555}

dependency-discovery:
build:
context: ../src/api/dependency-discovery
cache_from:
- docker.cdot.systems/dependency-discovery:buildcache

0 comments on commit 3119e80

Please sign in to comment.