-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.aws.yml
30 lines (30 loc) · 1.21 KB
/
docker-compose.aws.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
version: "3"
services:
engine:
image: "${ECR}/${APPLICATION}/engine:latest"
scale: 3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /cloned_repos:/work
env_file:
- .env
logging:
driver: awslogs
options:
awslogs-region: ${REGION}
awslogs-group: ${LOG_GROUP}
# This multiline regex is used to detect a JSON string.
# It captures any block that starts and ends within two open and closed curly braces `{}`
#
# The major limitation to this regex is:
# - It does not validate the contents of the curly brace. Therefore it can also catch incorrect JSON: {{hello:world}}
# - The regex breaks when a JSON string is nested 3 levels deep or more. For example: {"hello": {"x": {"test": {}}} }
# Because of this, Logs should be limited to a maximum of 3 levels.
# This limit can be increased by adding more capturing blocks: (?:[^{}]|\{[^{}]*\})
awslogs-multiline-pattern: "^\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*\\}$$"
tag: engine-${INSTANCE_ID}-{{.ID}}
db_maint:
image: "${ECR}/${APPLICATION}/db_maintenance:latest"
container_name: "db_maint"
env_file:
- .env