-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.17 KB
/
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
41
42
version: "3"
services:
##################################
# Setup client container
# Runs nginx and serves react app
##################################
client:
build: ./client
image: nickjordan289/unitynftservice-client:latest
domainname: ${ACI_DOMAIN_LABEL} # used to set fqdn when deploying to azure
environment:
- REACT_APP_PORT=${REACT_APP_PORT}
ports:
- 80:80
links:
- server
#########################
# Setup node container
#########################
server:
build: ./server
image: nickjordan289/unitynftservice-server:latest
environment:
APP_SERVER_PORT: ${APP_SERVER_PORT}
MONGODB_CONNSTRING: mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb
ALCHEMY_API_KEY: ${ALCHEMY_API_KEY}
command: ${NODE_COMMAND:-node} index.js
ports:
- ${APP_SERVER_PORT}:${APP_SERVER_PORT}
links:
- mongodb
##########################
# Setup database container
##########################
mongodb:
image: mongo:6.0.2
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}