-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yml
53 lines (53 loc) · 1.39 KB
/
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
---
services:
gcloud_datastore:
build:
context: .
dockerfile: gcp/datastore/Dockerfile
cache_from:
- ghcr.io/${REPOSITORY:-dev-hato/hato-atama}/gcloud_datastore:${TAG_NAME:-latest}
- ghcr.io/${REPOSITORY:-dev-hato/hato-atama}/gcloud_datastore
args:
BUILDKIT_INLINE_CACHE: 1
x-bake:
platforms:
- linux/amd64
- linux/arm64
image: ghcr.io/${REPOSITORY:-dev-hato/hato-atama}/gcloud_datastore:${TAG_NAME:-latest}
init: true
tty: true
environment:
DATASTORE_PROJECT_ID: app
DATASTORE_LISTEN_ADDRESS: 0.0.0.0:${GCLOUD_DATASOURCE_PORT}
GCLOUD_DATASOURCE_PORT: ${GCLOUD_DATASOURCE_PORT}
server:
build:
context: .
dockerfile: server/Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
x-bake:
platforms:
- linux/amd64
- linux/arm64
environment:
PROJECT_ID: app
DATASTORE_EMULATOR_HOST: "gcloud_datastore:${GCLOUD_DATASOURCE_PORT}"
PORT: ${PORT}
ports:
- "127.0.0.1:${PORT}:${PORT}"
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
x-bake:
platforms:
- linux/amd64
- linux/arm64
environment:
PORT: ${PORT}
FRONTEND_PORT: ${FRONTEND_PORT}
ports:
- "127.0.0.1:${FRONTEND_PORT}:${FRONTEND_PORT}"