-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·34 lines (31 loc) · 1.27 KB
/
docker-compose.yml
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
# This docker compose is for running the application locally - it shouldn't be
# used in production environments. There's nothing to necessarily say that the
# constituent service images can't, though.
version: "3"
services:
devtools:
image: ${SVELTEKIT_DEVTOOLS_IMAGE_NAME:-devtools}
container_name: ${SVELTEKIT_DEVTOOLS_CONTAINER_NAME:-devtools}
restart: always
environment:
# Rudimentary way of identifying that we're inside the container
- ENV_IS_CONTAINER=1
ports:
- ${SVELTEKIT_BUILD_PORT:-4173}:4173
- ${SVELTEKIT_DEV_PORT:-5173}:5173
volumes:
- ./:/home/${SVELTEKIT_PROJECT:-development}
# Replaces node_modules with an empty folder due to Win vs. Linux
# issues when mounted
- /home/${SVELTEKIT_PROJECT:-development}/node_modules
# This is only for local development
- ${SVELTEKIT_AWS_PATH:-$HOME/.aws}:/root/.aws:ro
- ${SVELTEKIT_GIT_CONFIG_PATH:-$HOME/.gitconfig}:/root/.gitconfig:ro
command:
- /bin/sh
- -c
- |
npm install
npx playwright install
echo "Dev Container is running!"
sleep infinity