-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (63 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.8"
services:
localstack:
container_name: "localstack"
image: localstack/localstack
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
environment:
- DEBUG=false
- PERSISTENCE=0
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME_EXTERNAL=localstack
- SERVICES=sqs
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
director:
container_name: "director"
image: transcribe-director:latest
environment:
- AWS_PROFILE=localstack
- AWS_DEFAULT_REGION=us-east-1
- AWS_REGION=us-east-1
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_KEY_ID=foo
- SOURCE_DIR=/source
- DEST_DIR=/dest
- LOCALSTACK_ENDPOINT=http://localstack:4566
- DOCKER_HOST=unix:///var/run/docker.sock
links:
- "localstack:localstack"
volumes:
- "~/.aws:/root/.aws:ro"
#- "/Users/christrotter/Desktop/source_recordings:/source"
- "/Users/christrotter/Dropbox/Chris/Music/voice_recordings:/source"
- "/Users/christrotter/Desktop/processed_recordings:/dest"
worker:
image: transcribe-worker:latest
#container_name: "worker" #can't have static names set when using replicas, auto-sets: repo-name_servicename_qty
environment:
- AWS_PROFILE=localstack
- AWS_DEFAULT_REGION=us-east-1
- AWS_REGION=us-east-1
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_KEY_ID=foo
- SOURCE_DIR=/source
- DEST_DIR=/dest
- LOCALSTACK_ENDPOINT=http://localstack:4566
- DOCKER_HOST=unix:///var/run/docker.sock
deploy:
resources:
limits:
cpus: '4' # you will be limited by your Docker Desktop preferences here: Preferences/Resources/Advanced/CPUs
memory: 1024M
mode: replicated
replicas: 2
links:
- "localstack:localstack"
volumes:
- "~/.aws:/root/.aws:ro"
- "/Users/christrotter/Dropbox/Chris/Music/voice_recordings:/source"
- "/Users/christrotter/Desktop/processed_recordings:/dest"