36 lines
761 B
YAML
36 lines
761 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./project/public/Backend
|
|
dockerfile: DockerfileGTA.backend
|
|
container_name: gta-backend
|
|
hostname: backend
|
|
ports:
|
|
- "8012:3000"
|
|
volumes:
|
|
- ./project/public/Backend/uploads:/app/uploads
|
|
networks:
|
|
- gta-network
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
frontend:
|
|
build:
|
|
context: ./project
|
|
dockerfile: DockerfileGTA.frontend
|
|
container_name: gta-frontend
|
|
hostname: frontend
|
|
ports:
|
|
- "3013:80"
|
|
environment:
|
|
- VITE_API_URL=http://backend:3000
|
|
networks:
|
|
- gta-network
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
gta-network:
|
|
driver: bridge |