-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 932 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 932 Bytes
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
version: "3.9"
services:
init:
image: busybox:latest
command: chown -R 1000:1000 /data/scratch
volumes:
- ./scratch:/data/scratch
api:
build: .
command: /srv/dlcs/entrypoint-api.sh
env_file: .env
environment:
- MIGRATE=True
- INIT_SUPERUSER=True
ports:
- "8000:8000"
volumes:
- $HOME/.aws:/srv/dlcs/.aws:ro
engine:
build: .
command: /srv/dlcs/entrypoint-worker.sh
deploy:
replicas: 3
env_file: .env
environment:
- AWS_PROFILE=${AWS_PROFILE:-default}
volumes:
- ./scratch:/data/scratch
- $HOME/.aws:/srv/dlcs/.aws:ro
depends_on:
- init
postgres:
image: postgres:13.3
environment:
- POSTGRES_USER=dlcs
- POSTGRES_PASSWORD=password
- POSTGRES_DB=compositedb
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres_data: