forked from freeCodeCamp/chapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (38 loc) · 998 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
version: "3.7"
services:
server:
restart: unless-stopped
env_file: .env
build:
context: .
dockerfile: server.Dockerfile
working_dir: /usr/chapter/server
volumes:
- ./server/keys/:/usr/chapter/server/keys/
ports:
- "5000:5000"
image: chapter-server
client:
restart: unless-stopped
env_file: .env
depends_on:
- server
build:
context: .
dockerfile: client.Dockerfile
args:
# on remote environments, NEXT_PUBLIC_SERVER_URL in .env (or shell
# environment) needs to include the remote address. e.g.
# https://example.com:5000
NEXT_PUBLIC_SERVER_URL:
NEXT_PUBLIC_DEPLOYMENT_ENVIRONMENT:
NEXT_PUBLIC_USE_AUTH0:
NEXT_PUBLIC_AUTH0_DOMAIN:
NEXT_PUBLIC_AUTH0_CLIENT_ID:
NEXT_PUBLIC_AUTH0_AUDIENCE:
NEXT_PUBLIC_CLIENT_URL:
NODE_ENV:
ports:
- "3000:3000"
working_dir: /usr/chapter/client
image: chapter-client