29 lines
541 B
YAML
29 lines
541 B
YAML
services:
|
|
frontend:
|
|
build:
|
|
context: frontend/
|
|
args:
|
|
BACKEND_BASE_URL: http://localhost:8080
|
|
ports:
|
|
- "3000:80"
|
|
networks:
|
|
- front-tier
|
|
- back-tier
|
|
# configs:
|
|
# - httpd-config
|
|
|
|
backend:
|
|
build: backend/
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- CORS_ALLOWED_ORIGINS=http://localhost:8080
|
|
networks:
|
|
- back-tier
|
|
|
|
networks:
|
|
# The presence of these objects is sufficient to define them
|
|
front-tier: {}
|
|
back-tier: {} |