-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.common.yaml
59 lines (54 loc) · 1.23 KB
/
docker-compose.common.yaml
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: "2"
services:
penpal-base:
build: ./PenPal
image: penpal/base
pull_policy: never
penpal-frontend:
build:
context: ./PenPal
dockerfile: ./Dockerfile-frontend
pull_policy: never
volumes:
- penpal-frontend-npm-cache:/home/node/.npm
ports:
- "3000:3000"
command: npm run frontend
networks:
- penpal
penpal-server:
build:
context: ./PenPal
dockerfile: ./Dockerfile-server
pull_policy: never
volumes:
- penpal-server-npm-cache:/home/node/.npm
- ./docker-compose.common.yaml:/penpal/app/docker-compose.common.yaml
- /tmp:/tmp
ports:
- "3001:3001"
environment:
- RUN_LOCATION=${RUN_LOCATION}
- OFFLINE=false
command: npm run server
networks:
- penpal
- internal
penpal-docker-api:
build:
context: ./PenPal
dockerfile: ./Dockerfile-socat
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: sh -c 'socat TCP-LISTEN:2376,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock'
networks:
- internal
volumes:
penpal-frontend-npm-cache:
external: false
penpal-server-npm-cache:
external: false
networks:
penpal:
driver: bridge
internal: