-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.05 KB
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
#
# This compose file can be used to run locally without using the locally installed python or dependencies
#
services:
datastore:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:latest
ports:
- 8081:8081
volumes:
- datastore:/root/.config
command: gcloud beta emulators datastore start --host-port=0.0.0.0:8081 --project glowscript-dev
flask:
profiles: [remote]
image: us.gcr.io/glowscript-py38/glowscript-flask:latest
ports:
- 8080:8080
links:
- datastore
volumes:
- .:/app
- datastore:/root/.config
environment:
- DATASTORE_EMULATOR_HOST=datastore:8081
- FLASK_RUN_HOST=0.0.0.0
- FLASK_RUN_PORT=8080
command: flask run
flask-local:
build: .
image: glowscript-flask:local
profiles: [local]
ports:
- 8080:8080
links:
- datastore
volumes:
- .:/app
- datastore:/root/.config
environment:
- DATASTORE_EMULATOR_HOST=datastore:8081
- FLASK_RUN_HOST=0.0.0.0
- FLASK_RUN_PORT=8080
command: flask run
volumes:
datastore: