-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.51 KB
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
version: "3"
services:
redis:
image: redis
container_name: redis
ports:
- "6379:6379"
networks:
- gateway
mongo:
image: mongo:3
container_name: mongo
command: mongod --smallfiles --bind_ip_all
volumes:
- ./data:/data/db
ports:
- "27017:27017"
networks:
- gateway
gateway:
image: shipyardsuite/gateway:develop
container_name: gateway
ports:
- "8080:8080"
- "80:80"
- "8443:8443"
- "9876:9876"
volumes:
- ./gateway/config/system.config.yml:/usr/src/app/config/system.config.yml
- ./gateway/config/gateway.config.yml:/usr/src/app/config/gateway.config.yml
networks:
- gateway
project:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
command: sh -c 'npm install; npm run start:dev'
container_name: project
ports:
- "3007:3007"
networks:
- gateway
environment:
SERVICE_PORT: ${SERVICE_PORT}
SERVICE_NAME: ${SERVICE_NAME}
HEALTHCHECK_ID: ${HEALTHCHECK_ID}
healthcheck:
test: curl --fail -s https://hc-ping.com/${HEALTHCHECK_ID} || exit 1
interval: 20s
timeout: 10s
retries: 3
networks:
gateway: