-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·62 lines (57 loc) · 1.26 KB
/
docker-compose.yaml
File metadata and controls
executable file
·62 lines (57 loc) · 1.26 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
version: '3.8'
services:
editor:
build:
context: ./editor
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- EDITOR_PORT=80
- PREVIEW_URL=http://preview:3010
- CODEBASE_URL=http://codebase:3020
depends_on:
- preview
- codebase
networks:
- reactstream-network
volumes:
- editor_node_modules:/app/node_modules
preview:
build:
context: ./preview
dockerfile: Dockerfile
ports:
- "3010:3010"
environment:
- PREVIEW_PORT=3010
- CODEBASE_URL=http://codebase:3020
volumes:
- preview_templates:/app/templates
- preview_node_modules:/app/node_modules
networks:
- reactstream-network
codebase:
build:
context: ./codebase
dockerfile: Dockerfile
ports:
- "3020:3020"
environment:
- PORT=3020
- NODE_ENV=production
- SESSION_SECRET=your_session_secret_here
volumes:
- codebase_repositories:/app/repositories
- codebase_node_modules:/app/node_modules
networks:
- reactstream-network
networks:
reactstream-network:
driver: bridge
volumes:
editor_node_modules:
preview_node_modules:
preview_templates:
codebase_node_modules:
codebase_repositories: