-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.4 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
version: "3.7"
services:
test:
image: python:3.10-slim
container_name: local-test
volumes:
- ${PWD}:/noseiquela/
environment:
DATASTORE_DATASET: noseiquela-dev
DATASTORE_EMULATOR_HOST: 0.0.0.0:8081
DATASTORE_EMULATOR_HOST_PATH: 0.0.0.0:8081/opt/datastore
DATASTORE_HOST: http://0.0.0.0:8081
DATASTORE_PROJECT_ID: noseiquela-dev
PYTHONPATH: /noseiquela/src/
command: bash -c "
cd /noseiquela &&
pip install -U pip &&
pip install -r requirements-dev.txt &&
pytest tests/unit/ -vvv"
datastore:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:370.0.0
container_name: local-datastore
command: bash -c "
gcloud beta emulators datastore start
--project=noseiquela-dev
--host-port=0.0.0.0:8081
--consistency=1.0
--data-dir=/opt/datastore &&
gcloud info --run-diagnostics"
ports:
- "8081:8081"
volumes:
- datastore-emulator-storage:/opt/datastore
datastore-viewer:
image: quay.io/gumo/datastore-viewer:v0.2.0
container_name: local-datastore-viewer
environment:
DATASTORE_VIEWER_HOST: 0.0.0.0
DATASTORE_VIEWER_PORT: 18081
GOOGLE_CLOUD_PROJECT: noseiquela-dev
DATASTORE_EMULATOR_HOST: host.docker.internal:8081
depends_on:
- datastore
ports:
- "18081:18081"
volumes:
datastore-emulator-storage:
driver: local