Sign inSign up

tongkolspace/workspace

By tongkolspace

Updated over 2 years ago

php-fpm and node docker

Image
0

737

tongkolspace/workspace repository overview

Docker container for php-fpm and node

User :

  • UID 1000 = workspace
  • UID 33 = www-data

Sample docker-compose file

  workspace-backend:
    image: tongkolspace/workspace:8.1-v1.0.1
    container_name: workspace-backend-${APP_NAME}
    build:
      context: ./workspace
      dockerfile: Dockerfile
    volumes:
      - ./php-fpm/php-dev.ini:/usr/local/etc/php/conf.d/zz-custom-php.ini
      - ../backend:/var/www/html
    env_file:
      - .env
    environment:
      TZ: "${TZ}"
    networks:
      - internal
      - external
    ports:
      # Bakend Laravel
      - 8000:8000
      - 5173:5173

Sample Command

docker-compose run -p 8000:8000 --rm workspace-backend php artisan serve --host 0.0.0.0 

Tag summary

Content type

Image

Digest

sha256:e7d2067b7

Size

384.4 MB

Last updated

over 2 years ago

docker pull tongkolspace/workspace