forked from nafees87n/codebox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 756 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (26 loc) · 756 Bytes
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
version: '3.8'
services:
# react development server
client:
build: ./client
ports:
- '3000:3000'
# server container manages client requests
server:
build: ./server
ports:
- '9000:9000'
# localhost:9000/ for host machine
# server:9000/ for containers
volumes:
- userdata:/storage # mounted volume, contains user generated data
# executor container responds to requests from the server container
executor:
build: ./executor
# visible as executor:8080/ for other containers, but the app is hidden to the host
volumes:
- userdata:/storage # mounted volume, contains user generated data
volumes:
# userdata volume common to all composed containers
userdata:
external: true