Skip to content

Commit

Permalink
feat: add docker-compose.yml fastify OAuth2 app
Browse files Browse the repository at this point in the history
  • Loading branch information
CynicDog committed Dec 27, 2024
1 parent 75d0b64 commit 288d3a5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions 7_auth/7_2_fastify/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: '3.8'

services:
backend:
image: ghcr.io/cynicdog/cloudnative-node.js-templates/auth_fastify:latest
container_name: fastify-backend
environment:
REDIS_HOST: redis
FRONTEND_HOST: vite-react-client
FRONTEND_PORT: 4173
ports:
- "3000:3000"
depends_on:
- redis
networks:
- app-network

frontend:
image: ghcr.io/cynicdog/cloudnative-node.js-templates/auth_client:latest
container_name: vite-react-client
environment:
PORT: 4173
VITE_SERVER_URI: http://fastify-backend:3000
ports:
- "4173:4173"
depends_on:
- backend
networks:
- app-network
command: ["npm", "run", "preview"]

redis:
image: redis:alpine
container_name: redis
ports:
- "6379:6379"
networks:
- app-network

networks:
app-network:
driver: bridge

0 comments on commit 288d3a5

Please sign in to comment.