-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
65 lines (59 loc) · 1.17 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.5'
services:
web:
image: 9e3u2f0b1/sent-template:latest
container_name: web
env_file: .env
environment:
OPEN_BROWSER_AFTER_BUILD: "false"
build:
context: .
dockerfile: docker/web/Dockerfile.development
command: npm run dev
tty: true
ports:
- '3000:3000'
- '10000:10000'
networks:
- test-network
storybook:
container_name: storybook
build:
context: .
dockerfile: docker/storybook/Dockerfile
restart: unless-stopped
command: npm run storybook
ports:
- '6006:6006'
networks:
- test-network
test:
container_name: test
build:
context: .
dockerfile: docker/test/Dockerfile
environment:
CYPRESS_BASE_URL: http://web:3000
command: npm run test:headless
depends_on:
- web
networks:
- test-network
nginx:
container_name: nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile
ports:
- 80:80/tcp
- 443:443/tcp
depends_on:
- web
networks:
- test-network
networks:
test-network:
name: test-network
driver: bridge
volumes:
node_modules: