-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (44 loc) · 1.29 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
# 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.4"
networks:
reaction:
external:
name: reaction.localhost
services:
api:
networks:
default:
reaction:
labels:
- "traefik.enable=true"
- "traefik.http.routers.demandjs-api.rule=Host(`api.demandcluster.com`)"
- "traefik.http.routers.demandjs-api.tls=true"
- "traefik.http.routers.demandjs-api.entrypoints=websecure"
- "traefik.http.routers.demandjs-api.service=demandjs-api-service"
- "traefik.http.services.demandjs-api-service.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
image: reactioncommerce/reaction:3.11.1
depends_on:
- mongo
env_file:
- ./.env
mongo:
image: mongo:4.2.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: