-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.8"
services:
# Front UI build tools
node-vuejs:
build:
context: .
dockerfile: docker/frontend/Dockerfile
target: node
args:
- TAG_NODEJS=${TAG_NODEJS:-14}
- VUE_UI_HOST=${VUE_UI_HOST}
- VUE_UI_PORT=${VUE_UI_PORT}
- VERSION=${PROJECT_PWA_VERSION:-1}
env_file: .env
image: ${IMAGE_NAME:-vuejs:beta}
container_name: ${CONTAINER_NAME:-vuejs}
restart: unless-stopped
environment:
- "NODE_ENV=${NODE_ENV:-development}"
- "NODE_USER=${NODE_USER:-node}"
- "API_URL=${API_URL:-http://backend:80}"
- "AUTH_URL=${AUTH_URL:-}"
# Override Dockerfile default command
networks:
- dev
# Front UI web server (for the NuxtJs application)
nginx-ui:
build:
context: .
dockerfile: docker/frontend/Dockerfile
target: nginx
args:
- TAG_NGINX=${TAG_NGINX:-1.20}
- VERSION=${PROJECT_PWA_VERSION:-1}
image: ${PROJECT:-test}_pwa:${PROJECT_VERSION:-0}
container_name: ${PROJECT:-test}_nginx_ui
restart: unless-stopped
environment:
- "NODE_ENV=${NODE_ENV:-production}"
- "NODE_USER=${NODE_USER:-node}"
networks:
- dev
## My own network
#networks:
# dev:
# Join the backend network if it exists...
networks:
dev:
external:
name: backend_dev