Untitled

mail@pastecode.io avatar
unknown
plain_text
12 days ago
551 B
1
Indexable
Never
version: '3'
services:
  app:
    image: ghcr.io/USERNAME/my-nodejs-backend:latest
    ports:
      - "3000:3000"
    env_file:
      - .env
    networks:
      - app-network
    depends_on:
      - redis

  nginx:
    image: nginx:alpine
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/default.conf
    ports:
      - "80:80"
    depends_on:
      - app
    networks:
      - app-network

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

networks:
  app-network:
Leave a Comment