-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (36 loc) · 1.04 KB
/
docker-compose.yaml
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
# SPDX-FileCopyrightText: Magenta ApS
#
# SPDX-License-Identifier: MPL-2.0
services:
proxy:
image: nginx:1
volumes:
- ./dev-environment/nginx-proxy.conf.template:/etc/nginx/templates/default.conf.template:ro
ports:
- "127.0.0.1:5050:80"
restart: unless-stopped
networks:
- os2mo_default
frontend:
build:
context: .
dockerfile: Dockerfile
# target: frontend build the dynamically reloading frontend
target: frontend
environment:
# `vue-cli-service serve` will proxy requests to mo, as defined in:
# `frontend/vue.config.js`.
BASE_URL: http://mo:80
volumes:
# To reload on file changes, we mount the current folder into `/code`.
# However we do not want node_modules on the host machine, so we create
# an additional volume for it.
- ./frontend:/app/frontend
- ./nginx.conf.template:/app/docker
- /app/frontend/node_modules
restart: unless-stopped
networks:
- os2mo_default
networks:
os2mo_default:
external: true