-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
40 lines (37 loc) · 1018 Bytes
/
docker-compose-dev.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
# Ensure Docker has access to sufficient 'CPUs' and memory via the Docker
# preferences page before running.
version: '2.1'
services:
controller:
build:
context: ./backend
dockerfile: Dockerfile.dev.backend
restart: always
ports:
- "9090:9090"
labels:
portainer: hidden
depends_on:
- "frontend"
volumes:
- 'asset_share:/app/asset_share'
- './backend/apps/controller:/app'
- 'file_storage:/app/storage'
- '/var/run/docker.sock:/var/run/docker.sock'
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev.interface
ports:
- "8081:8081"
labels:
portainer: hidden
volumes:
- 'asset_share:/app/public/interface_dev/public/asset_share'
- 'file_storage:/app/public/storage'
- './frontend/apps/interface:/app/public/interface_dev:cached'
- 'yarn_cache_frontend:/usr/local/share/.cache/yarn/'
volumes:
asset_share:
file_storage:
yarn_cache_frontend: