generated from wolfpackthatcodes/vite-typescript-package-toolkit
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
39 lines (36 loc) · 1.04 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
#--------------------------------------------------------------------------
# ! The Docker Compose file is configured for local environments.
# ! Do not deploy the Docker Compose file in production environments.
#--------------------------------------------------------------------------
# Sets the project name.
name: http-client
# The Docker services.
services:
# The Vite app container.
vite:
# https://hub.docker.com/_/node
image: node:alpine
container_name: ${APP_CONTAINER_NAME:-http-client_app}
networks:
- local
# Map the app container exposed port to the host port.
ports:
- ${APP_PORT:-51204}:${APP_PORT:-51204}
stdin_open: true
tty: true
volumes:
- .${CODE_DIR:-/code}:/app
working_dir: /app
# Start the Vite UI dev server.
# prettier-ignore
command: [
'yarn', 'run', 'test:ui',
'--api.port', '${APP_PORT:-51204}',
'--api.host', '0.0.0.0',
]
# The Docker networks.
networks:
local:
driver: 'bridge'
name: '${NETWORK_NAME:-http-client_local}'