-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (62 loc) · 2.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (62 loc) · 2.65 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
web:
image: projectsidewalk/web
container_name: projectsidewalk-web
build:
context: ./
shm_size: '256mb'
depends_on:
- db
volumes:
- "./:/home/:delegated"
# Masks the host's node_modules, which the bind mount above would otherwise lay over the image's — the host
# copy is built for the host's OS/arch. Named, not anonymous: an anonymous one is created per `docker compose
# run` and orphaned on exit. The cost is that it no longer re-seeds from a rebuilt image, which is why
# `make dev` runs tools/npm-sync.sh.
- "node_modules:/home/node_modules"
ports:
- "9000:9000"
# No `platform:` here — the web image builds on both amd64 and arm64, so each host builds natively instead of
# emulating (#5069). An override file's `platform:` still wins over this, so leave that one commented too.
environment:
- DATABASE_USER=sidewalk
- SIDEWALK_CITY_ID=DUMMY_CITY_ID
- MAPBOX_API_KEY=DUMMY_MAPBOX_API_KEY
- GOOGLE_MAPS_API_KEY=DUMMY_GOOGLE_API_KEY
- GOOGLE_MAPS_SECRET=DUMMY_GOOGLE_SECRET
- GEMINI_API_KEY=DUMMY_GEMINI_API_KEY
- SCISTARTER_API_KEY=DUMMY_SCISTARTER_API_KEY
- MAPILLARY_ACCESS_TOKEN=DUMMY_MAPILLARY_ACCESS_TOKEN
- GA_SERVICE_ACCOUNT_KEY=DUMMY_GA_SERVICE_ACCOUNT_KEY
- INFRA3D_CLIENT_ID_ZURICH=DUMMY_INFRA3D_CLIENT_ID
- INFRA3D_CLIENT_ID_WINTERTHUR=DUMMY_INFRA3D_CLIENT_ID
- INFRA3D_CLIENT_SECRET_ZURICH=DUMMY_INFRA3D_CLIENT_SECRET
- INFRA3D_CLIENT_SECRET_WINTERTHUR=DUMMY_INFRA3D_CLIENT_SECRET
- SIDEWALK_APPLICATION_SECRET=DUMMY_APPLICATION_SECRET_SET_CORRECTLY_ON_PRODUCTION
- SILHOUETTE_SIGNER_KEY=DUMMY_SILHOUETTE_SIGNER_KEY
- SILHOUETTE_CRYPTER_KEY=DUMMY_SILHOUETTE_CRYPTER_KEY
- INTERNAL_API_KEY=DUMMY_INTERNAL_API_KEY
- SIDEWALK_HTTP_PORT=9000
- ENV_TYPE=local
- SIDEWALK_IMAGES_DIR=.crops
db:
image: projectsidewalk/db
container_name: projectsidewalk-db
build:
context: ./db/
shm_size: '512mb'
volumes:
- "./db/scripts/init.sh:/docker-entrypoint-initdb.d/init.sh"
- "./db:/opt"
# Named, so the data survives `make docker-stop`, which runs `docker compose rm -fv`, rather than being deleted.
- "pgdata:/var/lib/postgresql/data"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=sidewalk
volumes:
# Leave these unprefixed. Compose namespaces them per project — your checkout directory, lowercased — so an explicit
# `name:` would point every Sidewalk checkout on the machine at one shared database (or one shared node_modules).
pgdata:
node_modules: