-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
50 lines (48 loc) · 1.33 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
version: "3.1"
services:
boilerplate-typescript-fastify-clean-architecture:
container_name: boilerplate-typescript-fastify-clean-architecture
image: boilerplate-typescript-fastify-clean-architecture:v1
build:
context: ./
dockerfile: ./docker/prod.Dockerfile
restart: always
ports:
- 8080:8080
depends_on:
- mongo
# - rabbitmq
# command: sh -c "dockerize -wait tcp://mongo:27017 -wait tcp://rabbitmq:5672 -timeout 300s -wait-retry-interval 30s npm start"
command: sh -c "dockerize -wait tcp://mongo:27017 -timeout 300s -wait-retry-interval 30s npm run start:production"
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
labels:
kompose.service.type: LoadBalancer
# rabbitmq:
# container_name: rabbitmq
# image: rabbitmq:management
# ports:
# - "15672:15672"
# - "5672:5672"
# logging:
# driver: "json-file"
# options:
# max-size: "50m"
# max-file: "10"
mongo:
container_name: mongo
image: mongo:4.0
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=database
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"