-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 951 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
version: '3.2'
volumes:
db-data:
driver: local
ux-dist:
driver: local
styles-dist:
driver: local
services:
styles:
build: ./styles
command: ["gulp", "--cwd=semantic", "build"]
entrypoint: ["./entrypoint.sh"]
env_file:
- ./envfile
volumes:
- type: volume
source: styles-dist
target: /home/node/dist/
ux:
build: ./ux
command: ["npm", "run", "build"]
entrypoint: ["./entrypoint.sh"]
env_file:
- ./envfile
volumes:
- type: volume
source: ux-dist
target: /home/node/code/dist/
- type: volume
source: styles-dist
target: /home/node/code/src/styles/
read_only: true
db:
image: postgres:10
env_file:
- ./envfile
volumes:
- db-data:/var/lib/postgresql/data/
app:
build: ./app
env_file:
- ./envfile
links:
- db
server:
build: ./server
env_file:
- ./envfile
links:
- app