bday2020/docker-compose.yml

35 lines
629 B
YAML
Raw Normal View History

2020-09-04 23:47:48 +00:00
version: "2"
2020-09-05 16:25:28 +00:00
volumes:
frontend_home:
2020-09-04 23:47:48 +00:00
services:
2020-09-07 13:29:02 +00:00
# Frontend
2020-09-05 23:45:43 +00:00
ui:
2020-09-07 13:29:02 +00:00
build:
context: ui/docker
args:
NONROOT_UID: 1000
NONROOT_GID: 1000
2020-09-05 23:45:43 +00:00
restart: 'unless-stopped'
2020-09-04 23:47:48 +00:00
volumes:
2020-09-05 16:25:28 +00:00
- "frontend_home:/home/node"
2020-09-05 23:45:43 +00:00
- "${PWD}/ui:/srv/vue/bday2020"
2020-09-04 23:47:48 +00:00
ports:
- 8000:8000
2020-09-05 23:45:43 +00:00
2020-09-07 13:29:02 +00:00
# Backend
2020-09-06 00:44:09 +00:00
api:
build: api
restart: 'no'
2020-09-07 13:29:02 +00:00
# Common Proxy
2020-09-05 23:53:13 +00:00
dev-proxy:
build: dev-proxy
restart: 'no'
ports:
- 8080:80
2020-09-06 00:44:09 +00:00
depends_on:
- ui
- api