forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 871 Bytes
/
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
version: "3.8"
x-web: &web
build:
context: .
args:
PROJECT_NAME: ${PROJECT_NAME:-web}
NEXT_PUBLIC_CHAIN_TYPE: ${NEXT_PUBLIC_CHAIN_TYPE:-}
TURBO_TEAM: ${TURBO_TEAM:-}
TURBO_TOKEN: ${TURBO_TOKEN:-}
PORT: ${PORT:-3000}
NEXT_PUBLIC_SENTRY_DSN: ${NEXT_PUBLIC_SENTRY_DSN:-}
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN:-}
target: web
restart: always
platform: linux/amd64
volumes:
- yarn-cache:/root/.yarn/berry/cache:rw
ports:
- ${PORT:-3000}:${PORT:-3000}
networks:
- app_network
services:
# default web
web: *web
# for mac with M1/M2 chip
web-arm64v8:
<<: *web
build:
args:
BASE_IMAGE: arm64v8/node:18
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
app_network:
volumes:
yarn-cache: