Untitled

mail@pastecode.io avatar
unknown
plain_text
10 days ago
480 B
3
Indexable
Never
version: '3.8'

services:
  frontend:
    image: nginx:latest
    ports:
      - "8080:80"
    volumes:
      - ./frontend:/usr/share/nginx/html

  backend:
    image: ubuntu:latest
    ports:
      - "3000:3000"
    environment:
      - DB_HOST=db
    depends_on:
      - db

  db:
    image: mysql:5.7
    environment:
      - MYSQL_ROOT_PASSWORD=root
      - MYSQL_DATABASE=mydatabase
    volumes:
      - db_data:/var/lib/mysql

volumes:
  db_data:
Leave a Comment