-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 1.51 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
version: '3.1'
services:
postgres:
image: postgres:13.7-alpine
container_name: typerighter-rule-manager
ports:
- 5432:5432
environment:
- POSTGRES_USER=tr-rule-manager-local
- POSTGRES_PASSWORD=tr-rule-manager-local
- POSTGRES_DB=tr-rule-manager-local
volumes:
- postgres-data:/var/lib/postgresql/data
command: [ "postgres", "-c", "log_statement=all", "-N", "500" ]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tr-rule-manager-local"]
interval: 10s
timeout: 5s
retries: 5
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack:1.4.0
ports:
- "4566-4599:4566-4599"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
environment:
- SERVICES=s3
- DEBUG=true
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "./.tmp:/var/lib/localstack"
- "./localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh"
- "~/.gu/typerighter/collins-dictionary.xml:/etc/gu/typerighter/collins-dictionary.xml"
- "~/.gu/typerighter/collins-lemmatised-list.xml:/etc/gu/typerighter/collins-lemmatised-list.xml"
- "~/.gu/typerighter/words-to-not-publish.json:/etc/gu/typerighter/words-to-not-publish.json"
- "/var/run/docker.sock:/var/run/docker.sock"
volumes:
postgres-data:
driver: local