Skip to content

Commit

Permalink
Add docker compose for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeDCrawford committed Sep 6, 2022
1 parent 553717e commit c768418
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Thumbs.db
.env*.local

doc/
.env
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,4 @@ RUN yarn build
FROM nginx:1.13.9-alpine
COPY --from=builder /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]








CMD ["nginx", "-g", "daemon off;"]
48 changes: 48 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
services:
static:
image: node:9.6.1
volumes:
- .:/app
working_dir: /app
command: /bin/sh -c 'yarn && yarn start'
ports:
- 3000:3000
environment:
REACT_APP_GRAPHQL_SERVER: http://localhost:3001 # http://api.orpheus.local:3001
REACT_APP_GRAPHQL_URI: graphql
REACT_APP_SERVER: http://localhost:3001 # http://api.orpheus.local:3001
REACT_APP_LOGIN_URI: auth/login
REACT_APP_LOGOUT_URI: auth/logout
REACT_APP_REGISTER_URI: auth/register
REACT_APP_VERIFY_TOKEN_URI: auth/verify-token
REACT_APP_WORDPRESS_UPLOADS_URL: http://slab.loc/app/uploads/
# REACT_APP_COOKIE_DOMAIN: mindthegap.orpheus.local
# REACT_APP_BUCKET_URL: https://s3.amazonaws.com/iiif-orpheus
# REACT_APP_FACEBOOK_CLIENT_ID: client_id
# REACT_APP_GOOGLE_CLIENT_ID: client_id
# REACT_APP_TWITTER_CLIENT_ID: client_id
# REACT_APP_GOOGLE_MAPS_API_KEY: mapkey


# client:
# build:
# context: .
# dockerfile: ./Dockerfile
# image: soundlab-client
# ports:
# - 3000:80
# environment:
# REACT_APP_GRAPHQL_SERVER: http://localhost:3001 # http://api.orpheus.local:3001
# REACT_APP_GRAPHQL_URI: graphql
# REACT_APP_SERVER: http://localhost:3001 # http://api.orpheus.local:3001
# REACT_APP_LOGIN_URI: auth/login
# REACT_APP_LOGOUT_URI: auth/logout
# REACT_APP_REGISTER_URI: auth/register
# REACT_APP_VERIFY_TOKEN_URI: auth/verify-token
# # REACT_APP_COOKIE_DOMAIN: mindthegap.orpheus.local
# # REACT_APP_BUCKET_URL: https://s3.amazonaws.com/iiif-orpheus
# # REACT_APP_FACEBOOK_CLIENT_ID: client_id
# # REACT_APP_GOOGLE_CLIENT_ID: client_id
# # REACT_APP_TWITTER_CLIENT_ID: client_id
# # REACT_APP_GOOGLE_MAPS_API_KEY: mapkey

0 comments on commit c768418

Please sign in to comment.