-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
59 lines (56 loc) · 996 Bytes
/
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
56
57
58
59
version: "3.8"
services:
web:
networks:
- api
ports:
- "3000:3000"
volumes:
- ./web:/periskop-dev
environment:
- API_HOST=localhost
- API_PORT=8080
build:
dockerfile: Dockerfile
context: ./web
working_dir: /periskop-dev
command:
- /bin/bash
- -c
- |
cp -r . /periskop-modules/.
cd /periskop-modules
npm start
depends_on:
- api
api:
networks:
- api
ports:
- "8080:8080"
volumes:
- .:/periskop-dev
environment:
- PORT=8080
- CONFIG_FILE=./config.docker.yaml
build:
context: ./
dockerfile: api-dev.Dockerfile
command:
- /bin/bash
- -c
- |
go build -o "/periskop-be/app" .
"/periskop-be/app"
depends_on:
- mock-target
mock-target:
networks:
- api
ports:
- "7778:7778"
build:
dockerfile: Dockerfile
context: ./mocktarget
networks:
api: