-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
45 lines (42 loc) · 1.25 KB
/
docker-compose.test.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
services:
src:
build: ./docker
volumes:
- logs:/shared
- ./test/nginx/.htpasswd:/etc/nginx/sites-enabled/.htpasswd:ro
- ./test/nginx/index/www:/var/www/index:ro
- ./test/nginx/index/nginx.conf:/etc/nginx/sites-enabled/index.conf:ro
- ./test/nginx/logs/www:/var/www/logs:ro
- ./test/nginx/logs/nginx.conf:/etc/nginx/sites-enabled/logs.conf:ro
- ./test/nginx/rewrite/nginx.conf:/etc/nginx/sites-enabled/rewrite.conf:ro
- ./test/nginx/status/www:/var/www/status:ro
- ./test/nginx/status/nginx.conf:/etc/nginx/sites-enabled/status.conf:ro
- ./test/nginx/try_files/www:/var/www/try_files:ro
- ./test/nginx/try_files/nginx.conf:/etc/nginx/sites-enabled/try_files.conf:ro
ports:
- 80:80
networks:
default:
aliases:
- fake.local
- index.local
- logs.local
- obsolete.local
- proxy_pass.local
- proxy_redirect.local
- status.local
- try_files.local
- rewrite.local
- www.rewrite.local
test:
depends_on:
- src
image: node:16-alpine
command: tail -f /dev/null
working_dir: /app
volumes:
- logs:/shared
- ./package.json:/app/package.json:ro
- ./test/mocha:/app/test/mocha:ro
volumes:
logs: