-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3.8"
services:
manager-api:
container_name: manager-api
# Build the image from the Dockerfile in the server folder
build:
context: ./server
# Run on startup and restart if it crashes
restart: always
# This will mount the server folder to the container so that we can
# make changes to the code and see them reflected in the container
volumes:
- ./server:/usr/src/app
# Expose the port 5000 to the host machine
# Change this to whatever port you put in the config.env file
ports:
# "HOST_PORT:CONTAINER_PORT"
- "5000:5000"
# Assign the environment variables to the container
# from the config.env file
env_file:
- ./server/config/config.env
manager-web:
container_name: manager-web
# Build the image from the Dockerfile in the client folder
build:
context: ./client
# Run on startup and restart if it crashes
restart: always
# Expose the port to the host machine
ports:
# "HOST_PORT:CONTAINER_PORT"
- "8088:8080"