Change Dockerfile and docker-compose.yml file

This commit is contained in:
2021-04-16 23:35:22 +02:00
parent 98ebb6f01c
commit bd12fcc3df
2 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
FROM node:15.8.0-alpine3.10 FROM node:15.8.0-alpine3.10
RUN mkdir -p /usr/src/nuxtapp RUN mkdir -p /usr/src/artsite
WORKDIR /usr/src/nuxtapp WORKDIR /usr/src/artsite
COPY nuxt-ts-app /usr/src/nuxtapp COPY . /usr/src/artsite
RUN yarn install RUN yarn install
@@ -11,6 +11,6 @@ RUN yarn build
EXPOSE 3333 EXPOSE 3333
COPY nuxt-ts-app . COPY . .
CMD ["yarn", "start"] CMD ["yarn", "start"]

View File

@@ -19,7 +19,7 @@ services:
- traefik.docker.network=proxy - traefik.docker.network=proxy
- traefik.port=443 - traefik.port=443
ports: ports:
- 3333:3333 - 3333:3333
networks: networks:
- internal - internal
- proxy - proxy
@@ -59,7 +59,7 @@ services:
volumes: volumes:
- "/root/mariadb/data:/var/lib/mysql" - "/root/mariadb/data:/var/lib/mysql"
redis: redis:
image: redis:6.0.10 image: redis:latest
container_name: redis container_name: redis
command: redis-server command: redis-server
ports: ports: