-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 1.13 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
35
36
37
38
39
40
41
42
43
version: '3'
services:
scribble-client:
build: ./client
container_name: scribble-client
restart: on-failure
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
scribble-server:
build: ./server
container_name: scribble-server
restart: always
volumes:
- ./server:/app
- source-volume:/app/src
scribble-router:
image: nginx:latest
container_name: scribble-router
restart: always
volumes:
- ./nginx/prod.conf:/etc/nginx/conf.d/default.conf
- ./client/dist:/var/www/scribble:ro
- ./client/docs/.vuepress/dist:/var/www/docs:ro
- build-volume:/var/www/download:ro
ports:
- "${PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
command: "nginx -g 'daemon off;'"
scribble-compiler:
build: ./compiler
container_name: scribble-compiler
restart: always
volumes:
- source-volume:/app/src
- build-volume:/app/build
volumes:
source-volume:
build-volume: