35 lines
509 B
YAML
35 lines
509 B
YAML
version: '3'
|
|
|
|
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- 8080:8080
|
|
command:
|
|
- "-debug"
|
|
- "/echo"
|
|
|
|
ui:
|
|
image: node
|
|
volumes:
|
|
- ./ui:/src
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
WDS_SOCKET_HOST: 0.0.0.0
|
|
WDS_SOCKET_PORT: 0
|
|
working_dir: /src
|
|
command: yarn start
|
|
|
|
proxy:
|
|
image: nginx
|
|
volumes:
|
|
- ./devloop/nginx:/etc/nginx/conf.d
|
|
depends_on:
|
|
- api
|
|
- ui
|
|
ports:
|
|
- 80:80
|