-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_build.yml
More file actions
33 lines (31 loc) · 1.22 KB
/
Copy pathdocker-compose_build.yml
File metadata and controls
33 lines (31 loc) · 1.22 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
# LOCAL BUILD-PROD-FROM-SCRATCH DEPLOYMENT
# This docker-compose file is for local development.
# It builds the entire project from scratch with the same configs as production.
# Usecase: Final development/manual testing. You want to test out a feature in an environment as close to prod as possible.
services:
#Nginx Reverse Proxy
proxy:
build:
context: . # Project root dir
dockerfile: ./frontend/buildFiles/nginx/dockerfile
ports:
- "5123:5123"
volumes:
- ./local_only:/data
container_name: production_nginx
restart: on-failure
environment:
- DOCKER_BUILDKIT=1 # This is specifically for docker compose and thus not part of .env
#NimStoryfont backend webserver that receives requests on port 8080
nimstoryfont:
build:
context: . # Project root dir
dockerfile: ./backend/buildFiles/dockerfile
expose:
- "8080" #Differs from ports: -"8080:8080" by not hogging the 8080 port, merely listening on it and thus not causing conflicts with production_nginx
volumes:
- ./local_only:/data
container_name: nswebserver
restart: on-failure
environment:
- DOCKER_BUILDKIT=1 # This is specifically for docker compose and thus not part of .env