-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.02 KB
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
46
47
services:
backend:
build: ./server
container_name: versionstack_backend
restart: always
environment:
- PORT=${PORT:-3000}
- JWT_SECRET=${JWT_SECRET:-change_me_in_production_please}
- ADMIN_API_KEY=${ADMIN_API_KEY:-admin}
command: npm run dev
volumes:
- ./server:/app
- /app/node_modules
- ./data:/app/data
networks:
- versionstack-net
client:
build: ./client
container_name: versionstack_client
restart: always
environment:
- VITE_API_URL=${VITE_API_URL:-/api}
volumes:
- ./client:/app
- /app/node_modules
networks:
- versionstack-net
nginx:
image: nginx:alpine
container_name: versionstack_nginx
restart: always
ports:
- "${HOST_PORT:-80}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./data/files:/usr/share/nginx/html/files:ro
depends_on:
- backend
- client
networks:
- versionstack-net
networks:
versionstack-net:
driver: bridge