-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1.17 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
36
37
38
39
40
41
version: "3.8"
services:
greenheat.server:
container_name: server
## for local build
build:
context: ./server
dockerfile: Dockerfile-server
## for production instead of "build:" use "image:" only (before must upload image)
# image: registry.example.com/greenheat/server:${RELEASE_VERSION}
restart: unless-stopped
ports:
- "8000:8000"
networks:
greenheat:
environment:
- ENVIRONMENT=${ENVIRONMENT}
- SERVER_PROTOCOL=${SERVER_PROTOCOL}
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- SERVER_NAME=${SERVER_NAME}
- SERVER_API_PREFIX=${SERVER_API_PREFIX}
greenheat.webapp:
container_name: webapp
## for local build
build:
context: ./webapp
dockerfile: Dockerfile-webapp
## for production instead of "build:" use "image:" only (before must upload image)
# image: registry.example.com/greenheat/webapp:${RELEASE_VERSION}
restart: unless-stopped
ports:
- "3000:3000"
networks:
greenheat:
environment:
- PROXY_SERVER_HOST=${SERVER_HOST}
- PROXY_SERVER_PORT=${SERVER_PORT}
networks:
greenheat:
name: greenheat_network