-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (46 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
version: "3.7"
services:
# Outpost api
app:
image: "outpost_api:development"
build:
context: .
# uncomment for 'prod' like env locally
# NODE_ENV: production
container_name: outpost-api-service
# use if you just want to keep the container running
# entrypoint: ["tail"]
# command: ["-f", "/dev/null"]
environment:
DB_URI: mongodb://${MONGO_INITDB_USERNAME:-outpost}:${MONGO_INITDB_PASSWORD:-password}@mongo/${MONGO_INITDB_DATABASE:-outpost_api_development}
platform: linux/arm64
volumes:
- ./:/app:cached
- /app/node_modules
ports:
- "${HOST_PORT:-3000}:3000"
networks:
- internal_network
- external_network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/health"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
- mongo
# Databases
mongo:
extends:
file: ./.docker/services/mongo/mongo.yml
service: mongo
networks:
- external_network
- internal_network
volumes:
mongo-volume:
networks:
external_network:
internal_network:
internal: true