forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 917 Bytes
/
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
# This docker-compose file is used to run the project's published image
#
# Usage: docker-compose up [-d]
#
# See comment in docker-compose.dev.yml if you want to run for development.
version: "3.9"
networks:
reaction:
name: reaction.localhost
external: true
services:
api:
image: reactioncommerce/reaction:4.2.7
depends_on:
- mongo
env_file:
- ./.env
networks:
- default
- reaction
ports:
- "3000:3000"
mongo:
image: mongo:5.0
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
networks:
- default
- reaction
ports:
- "27017:27017"
volumes:
- mongo-db4:/data/db
healthcheck: # re-run rs.initiate() after startup if it failed.
test: test $$(echo "rs.status().ok || rs.initiate().ok" | mongo --quiet) -eq 1
interval: 10s
start_period: 30s
volumes:
mongo-db4: