-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·54 lines (44 loc) · 1.14 KB
/
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.3"
services:
web:
build: ./web
volumes:
- ./web:/code
- static:/static
networks:
- back-tier
frontend:
image: node:13
volumes:
- ./frontend:/code
networks:
- back-tier
working_dir: /code/
command: ./command.sh
environment:
- MAPBOX_ACCESS_TOKEN=pk.eyJ1IjoiZnBjYyIsImEiOiJjbHJ6Y2RrZ2kxa3NlMndsemNqbTMwajk3In0.Ptmj4UY9iIzIO3UVPpaOUg
- MAPBOX_STYLE_URL=mapbox://styles/fpcc/cls0kyxqh00b301pvb06p0r07/?optimize=true
test:
image: alekzonder/puppeteer:latest
volumes:
- ./frontend:/code
networks:
- back-tier
working_dir: /code/
user: root
command: "./wait-for-it.sh -t 30 frontend:80 -- yarn test"
depends_on:
- frontend
nginx:
networks:
- back-tier
build: ./nginx
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- static:/static
networks:
back-tier:
driver: bridge
volumes:
static:
driver: local