docker.compose.yaml

mail@pastecode.io avatar
unknown
plain_text
a month ago
898 B
2
Indexable
Never
version: '3.8'

services:
  frontend:
    build:
      context: ./frontend
    ports:
      - "3033:3000"
    volumes:
      - ./frontend:/app
    environment:
      - NODE_ENV=development
    networks:
      - app-network

  backend:
    build:
      context: ./backend
    ports:
      - "8033:80"
    volumes:
      - ./backend:/var/www/html
      - ./backend/var:/var/www/html/var
    environment:
      - PUID=1000
      - PGID=1000
      - APACHE_RUN_USER=www-data
      - APACHE_RUN_GROUP=www-data
    depends_on:
      - db
    networks:
      - app-network

  db:
    image: postgres:15
    volumes:
      - db_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=license-manager
      - POSTGRES_USER=symfony
      - POSTGRES_PASSWORD=symfony
    ports:
      - "5432:5432"
    networks:
      - app-network

volumes:
  db_data:

networks:
  app-network:
    driver: bridge
Leave a Comment