-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (44 loc) · 974 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
services:
django:
build:
context: .
dockerfile: Dockerfile.dev
container_name: django
volumes:
- ./:/home/feroz/app
ports:
- '8000:8000'
restart: unless-stopped
environment:
- DJANGO_DEBUG=True
# {{ with secret "kv/data/django_token" }}
- VAULT_ADDR={{ .Data.data.VAULT_ADDR }}
- VAULT_TOKEN={{ .Data.data.VAULT_TOKEN }}
# {{ end }}
vitejs:
image: node:21-alpine3.18
container_name: vitejs
working_dir: /app/vitejs
# command:
# - /bin/sh
# - -c
# - |
# cd portfolio
# npm run dev
command:
- /bin/sh
- -c
- |
if [ ! -d "portfolio" ] ; then
npm create vite@latest portfolio -- --template vanilla
fi
cd portfolio
npm install
npm run dev
user: '1000:1000'
volumes:
- /app/node_modules
- .:/app
ports:
- '3300:3000'
restart: unless-stopped