-
Notifications
You must be signed in to change notification settings - Fork 337
/
docker-compose.yml
40 lines (36 loc) · 985 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
37
38
39
40
version: "3.8"
x-args: &args
PROJECT_NAME: ${PROJECT_NAME:-web}
NEXT_PUBLIC_CHAIN_TYPE: ${NEXT_PUBLIC_CHAIN_TYPE:-}
TURBO_TEAM: ${TURBO_TEAM:-} # for Turborepo remote cache
TURBO_TOKEN: ${TURBO_TOKEN:-} # for Turborepo remote cache
NEXT_PUBLIC_SENTRY_DSN: ${NEXT_PUBLIC_SENTRY_DSN:-} # for Sentry.io
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN:-} # for Sentry.io
x-build: &build
context: .
args: *args
target: runner
x-web: &web
build: *build
restart: always
platform: linux/amd64
ports:
- ${PORT:-3000}:${PORT:-3000}
networks:
- app_network
env_file: .env
services:
# default web
web: *web
# for mac with M1/M2 chip
web-arm64v8:
<<: *web
build:
<<: *build
args:
<<: *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: