-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.45 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
55
56
57
58
59
version: "3.9"
services:
postgres:
image: postgres:14.5
container_name: flowbuild_db
restart: always
env_file:
- ./.env.docker
ports:
- 5432:5432
app:
image: node:18.12
env_file:
- ./.env.docker
container_name: flowbuild_app
restart: on-failure:10 # necessary due to possibility of postgres not being ready when service runs
depends_on:
- postgres
ports:
- 3000:3000
volumes:
- .:/usr/app
- /usr/app/node_modules
working_dir: /usr/app
#command: ./scripts/start_dev.sh
#command: bash -c " npm update && npm install knex -g && npm install nodemon -g && npm install && npm rebuild && npm run migrations && npm run seeds && npm run start "
command: bash -c " npm install && npm audit fix && npm run migrations && npm run seeds && npm run start "
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/healthcheck"]
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
socket:
image: hivemq/hivemq4:latest
container_name: flowbuild_mqtt
restart: on-failure:10
ports:
- 8081:8080
- 1883:1883
- 8000:8000
# optional broker
# rabbitmq:
# image: rabbitmq:3-management-alpine
# container_name: rabbitmq
# ports:
# - 5672:5672
# - 15672:15672
redis:
image: redis:7-bullseye
container_name: flowbuild_redis
restart: always
ports:
- 6379:6379