-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
150 lines (149 loc) · 4.34 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '3.8'
services:
localstack:
image: localstack/localstack@sha256:7c6635493185d25165979995fb073fd789c72b6d8b17ef3a70b798d55576732f
ports:
- '4566:4566'
environment:
- HOSTNAME_EXTERNAL=localstack
- SERVICES=s3,secretsmanager
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- PORT_WEB_UI=${PORT_WEB_UI- }
- HOST_TMP_FOLDER=${TMPDIR}
- DEFAULT_REGION=us-west-2
volumes:
- localstack:/tmp/localstack
networks:
naparinet:
aliases:
- localstack.naparinet.local
frontend:
image: '${DOCKER_REPO}napari-hub-dev-frontend'
build:
context: frontend
cache_from:
- '${DOCKER_REPO}napari-hub-dev-frontend:${STACK_NAME}'
args:
- BUILDKIT_INLINE_CACHE=1
- HAPPY_COMMIT
- HAPPY_BRANCH
- HAPPY_TAG
- ENV
restart: always
depends_on:
- backend
ports:
- '8080:8080'
environment:
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- BOTO_ENDPOINT_URL=http://localstack:4566
- API_URL=http://backend.naparinet.local:5000/
volumes:
- ./frontend:/app
- /app/node_modules/
- /app/.next/
networks:
naparinet:
aliases:
- frontend.naparinet.local
backend:
image: '${DOCKER_REPO}napari-hub-dev-backend'
build:
context: .
dockerfile: backend/Dockerfile
cache_from:
- '${DOCKER_REPO}napari-hub-dev-backend:${STACK_NAME}'
args:
- BUILDKIT_INLINE_CACHE=1
- HAPPY_COMMIT
- HAPPY_BRANCH
- HAPPY_TAG
restart: always
depends_on:
- localstack
ports:
- '5000:5000'
environment:
- PYTHONUNBUFFERED=1
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- BOTO_ENDPOINT_URL=http://localstack:4566
- BUCKET=imaging-test-napari-hub
# This entrypoint only used for local dev; in cloud we deploy as a Lambda container
entrypoint: gunicorn --worker-class gevent --workers 4 --bind 0.0.0.0:5000 napari:app --max-requests 10000 --timeout 5 --keep-alive 5 --log-level info --reload
volumes:
- ./backend:/var/task
networks:
naparinet:
aliases:
- backend.naparinet.local
plugins:
image: '${DOCKER_REPO}napari-hub-dev-plugins'
build:
context: .
dockerfile: plugins/Dockerfile
cache_from:
- '${DOCKER_REPO}napari-hub-dev-plugins:${STACK_NAME}'
args:
- BUILDKIT_INLINE_CACHE=1
- HAPPY_COMMIT
- HAPPY_BRANCH
- HAPPY_TAG
restart: always
depends_on:
- localstack
ports:
- '5000:5000'
environment:
- PYTHONUNBUFFERED=1
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- BOTO_ENDPOINT_URL=http://localstack:4566
- BUCKET=imaging-test-napari-hub
# This entrypoint only used for local dev; in cloud we deploy as a Lambda container
entrypoint: gunicorn --worker-class gevent --workers 4 --bind 0.0.0.0:5000 napari:app --max-requests 10000 --timeout 5 --keep-alive 5 --log-level info --reload
volumes:
- ./plugins:/var/task
networks:
naparinet:
aliases:
- plugins.naparinet.local
data-workflows:
image: '${DOCKER_REPO}napari-hub-dev-data-workflows'
build:
context: .
dockerfile: data-workflows/Dockerfile
cache_from:
- '${DOCKER_REPO}napari-hub-dev-data-workflows:${STACK_NAME}'
args:
- BUILDKIT_INLINE_CACHE=1
- HAPPY_COMMIT
- HAPPY_BRANCH
- HAPPY_TAG
restart: always
ports:
- '5000:5000'
environment:
- PYTHONUNBUFFERED=1
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- BOTO_ENDPOINT_URL=http://localstack:4566
- BUCKET=imaging-test-napari-hub
# This entrypoint only used for local dev; in cloud we deploy as a Lambda container
entrypoint: gunicorn --worker-class gevent --workers 4 --bind 0.0.0.0:5000 napari:app --max-requests 10000 --timeout 5 --keep-alive 5 --log-level info --reload
volumes:
- ./data-workflows:/var/task
networks:
naparinet:
aliases:
- data-workflows.naparinet.local
networks:
naparinet:
volumes:
localstack: