-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.67 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
version: "3"
services:
web:
entrypoint: node bin/app.js
image: ${REGISTRY}/${APP_IMAGE_NAME}:${APP_TAG}
deploy:
mode: replicated
replicas: 1
update_config:
delay: 60s
# resources:
# limits:
# cpus: '0.25'
# memory: 512M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 180s
environment:
#NODE_TLS_REJECT_UNAUTHORIZED: "0"
NODE_ENV: "docker"
MONGO_HOST: ${MONGO_HOST}
VIRTUAL_HOST: ${VIRTUAL_HOST}
SERVICE_PORTS: "3000"
LICENSE_KEY: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJvZWNsb3VkLmlvIiwiYXVkIjoib2VjbG91ZC5pbyIsImVuZGwiOjE1MTQ3NjQ4MDAwMDAsImlhdCI6MTUxOTAzODMxMX0.X2p2NWle9Fa0OQcqWmuGE8aaLr9coUxTI1AMRxaICPW2n2aVGsfE1ZFJ3DRoCBrZ4L1rIOqGuoceARzHXD3FBZjFET7ZfKnLd3yBvCOhPNEaPu-7dU1cRwS1Rdb-tgQrj_-1dzLWLTqOn7AxLOU1TH5uw2XQ4lg9UyeGzylvM2U"
LICENSE_PUBLICKEY: "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAqigyzSV+Yo59aA0IOgnG3Ad9VD5iiLJG7xwezarFsApsBZbOFzd++yqG1Tc7bbZO3rTCymjdFmVVB8Kdq8PE5MIb4Tsz97W8IElyX9lwIU7AmPfh/8LV9YLLxTJPVwQMWIrEWNZs4CzMGkMKKcSUcURxG3nXyIc3IKh0HxrHJwIDAQAB-----END PUBLIC KEY-----"
LOGGER_CONFIG: '{"name":"oe-workflow","logStreams":[{"type":"pretty"}],"levels":{"default":"info","req-logging-filter":"debug","response-logger":"debug"}}'
networks:
- ${NETWORK_NAME}
- router_network
# logging:
# driver: gelf
# options:
# gelf-address: "udp://0.0.0.0:12201"
mongo:
image: ${REGISTRY}/alpine-mongo:latest
networks:
- ${NETWORK_NAME}
networks:
${NETWORK_NAME}:
external: true
router_network:
external: true