-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.13 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
54
services:
dashboard:
build:
context: .
dockerfile: Dockerfile
depends_on:
webservice:
condition: service_started
restart: always
working_dir: /home/node/pa11y-dashboard
entrypoint: ["npm", "start"]
ports:
- 8080:8080
networks:
- pa11y
environment:
- PORT=8080
- WEBSERVICE_URL=http://webservice:3000/
webservice:
build:
context: .
dockerfile: Dockerfile
depends_on:
mongodb:
condition: service_started
restart: always
working_dir: /home/node/pa11y-webservice
entrypoint: ["npm", "start"]
ports:
- 3000:3000
networks:
- pa11y
environment:
- PORT=3000
- DATABASE=mongodb://mongodb/pa11y-webservice
# - DATABASE=mongodb://Ighee9su:aeY4ahDi@mongodb/pa11y-webservice
mongodb:
restart: always
image: mongo:latest
environment:
- xMONGO_INITDB_ROOT_USERNAME=Ighee9su
- xMONGO_INITDB_ROOT_PASSWORD=aeY4ahDi
- xMONGO_INITDB_DATABASE=pa11y-webservice
networks:
- pa11y
volumes:
- mongo-data:/data/db
networks:
pa11y:
volumes:
mongo-data: