Skip to content

Commit

Permalink
chore(#439): wip app container
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 5, 2022
1 parent 0e95059 commit 4209a52
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 32 deletions.
11 changes: 1 addition & 10 deletions .docker/Dockerfile.app
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,4 @@ ENV GITHUB_CLIENT_ID ${GITHUB_CLIENT_ID}
ENV GITHUB_CLIENT_SECRET ${GITHUB_CLIENT_SECRET}
ENV OAUTH_CLIENT_ID ${OAUTH_CLIENT_ID}

RUN npm run generate

FROM uselagoon/nginx:latest

COPY --from=builder /app/dist /app/

COPY nginx.conf /etc/nginx/conf.d/app.conf

ENV HOST 0.0.0.0
EXPOSE 8080
CMD ['npm', 'run', 'generate', '&&', 'npm', 'start']
2 changes: 1 addition & 1 deletion .docker/Dockerfile.storybook
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ EXPOSE 3000

WORKDIR /app

CMD ["yarn", "storybook", "-p", "3000"]
CMD ["npm", "run", "storybook", "-p", "3000"]
2 changes: 1 addition & 1 deletion .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ environments:
- storybook:
- storybook.demo.druxtjs.org
- nginx:
- demo-api.druxtjs.org
- demo-api.druxtjs.org
cronjobs:
- name: drush cron
schedule: "*/15 * * * *"
Expand Down
40 changes: 20 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,25 @@ services:
# environment:
# << : *default-environment

# app:
# networks:
# - amazeeio-network
# - default
# build:
# context: .
# dockerfile: .docker/Dockerfile.app
# args:
# GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
# GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
# OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
# labels:
# lagoon.type: nginx
# lando.type: nginx
# volumes:
# - ./nuxt/dist:/app:delegated
# environment:
# LAGOON_LOCALDEV_HTTP_PORT: 8080
# LAGOON_ROUTE: http://demo-druxtjs-org.docker.amazee.io
app:
networks:
- amazeeio-network
- default
build:
context: .
dockerfile: .docker/Dockerfile.app
args:
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
labels:
lagoon.type: node
lando.type: node
volumes:
- ./nuxt/dist:/app:delegated
environment:
LAGOON_LOCALDEV_HTTP_PORT: 3000
LAGOON_ROUTE: http://demo-druxtjs-org.docker.amazee.io

storybook:
networks:
Expand All @@ -110,7 +110,7 @@ services:
volumes:
- ./nuxt/dist:/app:delegated
environment:
LAGOON_LOCALDEV_HTTP_PORT: 3003
LAGOON_LOCALDEV_HTTP_PORT: 3000
LAGOON_ROUTE: http://storybook-demo-druxtjs-org.docker.amazee.io

networks:
Expand Down

0 comments on commit 4209a52

Please sign in to comment.