-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 1.59 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.3"
services:
redis:
image: redis
data:
image: nginx
db:
image: postgres:13
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
- ./scripts/docker/init.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- .docker-env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=nmdc
command:
- postgres
- "-c"
# Our MGA ingest makes some *very* large transactions
- "max_wal_size=2GB"
ports:
- "5432:5432"
worker:
image: ghcr.io/microbiomedata/nmdc-server/worker:main
depends_on:
- redis
- db
env_file:
- .docker-env
- .env
build:
context: .
dockerfile: Dockerfile.worker
backend:
image: ghcr.io/microbiomedata/nmdc-server/server:main
depends_on:
- db
- redis
env_file:
- .docker-env
- .env
build:
context: .
dockerfile: Dockerfile
environment:
- PGHOST=db
networks:
- public
- default
ports:
- "8000:8000"
volumes:
- ./data/ingest:/data/ingest
# Use a TTY so colors are preserved in the log output
tty: true
web:
image: ghcr.io/microbiomedata/nmdc-server/client:main
depends_on:
- backend
- data
env_file:
- .docker-env
environment:
BACKEND_URL: "http://backend:8000"
DNS_ADDRESS: "127.0.0.11"
build:
context: web/
dockerfile: Dockerfile
networks:
- public
- default
ports:
- "8080:80"
volumes:
app-db-data:
app-db-ingest:
networks:
public: