-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# =============================================================================
# MACROSTASIS - Docker Compose
# =============================================================================
# Configuración para frontend + backend con Cloudflare Tunnel (parhelion)
#
# Servicios:
# - frontstasis: Frontend Angular (puerto 80)
# - backstasis: Backend WebSocket Node.js (puerto 80 -> 3081)
# - chessengine: Motor de ajedrez Python (interno, puerto 5000)
#
# Red: parhelion-network (para Cloudflare Tunnel)
#
# @author Carlos Eduardo Juárez Ricardo
# @version 3.0.0
# =============================================================================
services:
frontstasis:
build:
context: .
dockerfile: Dockerfile
container_name: frontstasis
restart: unless-stopped
ports:
- "3080:80"
networks:
- parhelion-network
labels:
- "com.docker.compose.project=macrostasis"
- "traefik.enable=false"
backstasis:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backstasis
restart: unless-stopped
ports:
- "3081:80"
depends_on:
chessengine:
condition: service_healthy
networks:
- parhelion-network
env_file:
- ./backend/.env
environment:
- CHESS_ENGINE_URL=http://chessengine:5000
- NODE_ENV=${NODE_ENV:-development}
labels:
- "com.docker.compose.project=macrostasis"
chessengine:
build:
context: ./chessengine
dockerfile: Dockerfile
container_name: chessengine
restart: unless-stopped
networks:
- parhelion-network
labels:
- "com.docker.compose.project=macrostasis"
networks:
parhelion-network:
external: true