Servicii pe docker cu diverse aplicatii: python, node, php, .net
This commit is contained in:
@@ -1,12 +1,53 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/php/Dockerfile
|
||||
container_name: itschool-php84
|
||||
volumes:
|
||||
- ./src:/var/www/html
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./src:/var/www/src
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
depends_on:
|
||||
- php
|
||||
restart: unless-stopped
|
||||
|
||||
php:
|
||||
image: php:8.3-fpm
|
||||
volumes:
|
||||
- ./src:/var/www/src
|
||||
restart: unless-stopped
|
||||
|
||||
python:
|
||||
image: python:3.12-slim
|
||||
container_name: alex-python
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- .:/app
|
||||
command: python /app/www/script_python2.py
|
||||
ports:
|
||||
- "8088:8088"
|
||||
restart: unless-stopped
|
||||
dotnet:
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
container_name: alex-dotnet
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./www/programDotNet:/app
|
||||
command: dotnet run --urls http://0.0.0.0:8085
|
||||
ports:
|
||||
- "8085:8085"
|
||||
restart: unless-stopped
|
||||
|
||||
node:
|
||||
image: node:20-alpine
|
||||
container_name: alex-node
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
- PORT=8090
|
||||
command: node /app/www/node_script.js
|
||||
ports:
|
||||
- "8090:8090"
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user