Skip to content

Commit

Permalink
Use PO webnet network in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
john-gom committed Sep 4, 2023
1 parent 58a01a1 commit 1d8381d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
echo "COMPOSE_HTTP_TIMEOUT=120" >> .env
echo "COMPOSE_PROJECT_NAME=off-query" >> .env
echo "COMPOSE_PATH_SEPARATOR=;" >> .env
echo "COMPOSE_FILE=docker-compose.yml" >> .env
echo "COMPOSE_FILE=docker-compose.yml;docker/prod.yml" >> .env
echo "TAG=sha-${{ github.sha }}" >> .env
# App environment variables
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ services:
- POSTGRES_DB
volumes:
- dbdata:/var/lib/postgresql/data
networks:
- po_default

query:
image: ghcr.io/openfoodfacts/openfoodfacts-query:${TAG}
Expand All @@ -19,16 +17,9 @@ services:
- POSTGRES_USER
- POSTGRES_PASSWORD
- MONGO_URI
networks:
- po_default
depends_on:
query_postgres:
condition: service_started

networks:
po_default:
external: true
name: po_default

volumes:
dbdata:
9 changes: 9 additions & 0 deletions docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
- 5512:5432
volumes:
- ./data:/mnt/data
networks:
- po_default

query:
build: .
Expand All @@ -18,3 +20,10 @@ services:
- 5511:5510
volumes:
- ./data:/data
networks:
- po_default

networks:
po_default:
external: true
name: po_default
13 changes: 13 additions & 0 deletions docker/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
query_postgres:
networks:
- webnet

query:
networks:
- webnet

networks:
webnet:
external: true
name: po_webnet

0 comments on commit 1d8381d

Please sign in to comment.