first pass
This commit is contained in:
24
templates/nodejs/vite-react-ssr/docker-compose.yml.template
Normal file
24
templates/nodejs/vite-react-ssr/docker-compose.yml.template
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
{{PROJECT_NAME}}:
|
||||
build: .
|
||||
container_name: {{PROJECT_NAME}}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${HOST_PORT:-{{PORT}}}:{{PORT}}"
|
||||
{{#if USE_ENV_FILE}}
|
||||
env_file:
|
||||
- .env
|
||||
{{/if}}
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: {{PORT}}
|
||||
{{#if HAS_VOLUMES}}
|
||||
volumes:
|
||||
{{#each VOLUMES}}
|
||||
- {{this}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if EXTRA_HOSTS}}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user