forked from OpenSignLabs/OpenSign
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (69 loc) · 1.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (69 loc) · 1.84 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
67
68
69
70
services:
# Imagen construida desde este repo (apps/OpenSignServer/Dockerhubfile): incluye cloud/ y tus cambios en SendMailOTPv1, etc.
# Build: docker compose build server | Up: docker compose up -d server
server:
build:
context: .
dockerfile: apps/OpenSignServer/Dockerhubfile
image: opensign/opensignserver:ghi-local
container_name: OpenSignServer-container
volumes:
- opensign-files:/usr/src/app/files
ports:
- "8080:8080"
depends_on:
- mongo
env_file: .env.prod
environment:
- NODE_ENV=production
# Las cloud functions (p. ej. getReport) llaman al API Parse desde este mismo contenedor.
- SERVER_URL=http://127.0.0.1:8080/app
- PUBLIC_URL=${HOST_URL:-https://localhost:3001}
networks:
- app-network
mongo:
image: mongo:latest
container_name: mongo-container
volumes:
- data-volume:/data/db
ports:
- "27018:27017"
networks:
- app-network
client:
build:
context: .
dockerfile: apps/OpenSign/Dockerhubfile
image: opensign/opensign:ghi-local
container_name: OpenSign-container
depends_on:
- server
env_file: .env.prod
ports:
- "3000:3000"
networks:
- app-network
caddy:
image: caddy:latest
container_name: caddy-container
ports:
# Solo 3001 en local: 80/443 suelen estar ocupados en el host y impedían que Caddy arrancara.
# En servidor con dominio real, sumá "80:80" y "443:443" si los necesitás.
- "3001:3001"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
networks:
- app-network
environment:
- HOST_URL=${HOST_URL:-localhost:3001}
networks:
app-network:
driver: bridge
volumes:
data-volume:
web-root:
caddy_data:
caddy_config:
opensign-files: