1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-12-08 00:44:30 +01:00

chore: rename docker-compose.yml to compose.yaml

Ref: https://docs.docker.com/compose/compose-file/03-compose-file/
This commit is contained in:
Théo LUDWIG 2023-07-28 11:38:34 +02:00
parent 49599d25ed
commit f1509d0af1
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
4 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "theoludwig", "name": "theoludwig",
"dockerComposeFile": "./docker-compose.yml", "dockerComposeFile": "./compose.yaml",
"service": "workspace", "service": "workspace",
"workspaceFolder": "/workspace", "workspaceFolder": "/workspace",
"customizations": { "customizations": {

View File

@ -6,6 +6,7 @@ RUN npm clean-install
FROM node:20.5.0 AS builder FROM node:20.5.0 AS builder
WORKDIR /usr/src/application WORKDIR /usr/src/application
COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules
COPY --from=builder-dependencies /usr/src/application/jsonresume-theme-custom/node_modules ./jsonresume-theme-custom/node_modules
COPY ./ ./ COPY ./ ./
RUN npm run build RUN npm run build

View File

@ -5,8 +5,7 @@ services:
restart: 'unless-stopped' restart: 'unless-stopped'
build: build:
context: './' context: './'
ports: network_mode: 'host'
- '${PORT-3000}:${PORT-3000}'
environment: environment:
PORT: ${PORT-3000} PORT: ${PORT-3000}
env_file: '.env' env_file: '.env'