forked from graphman65/touist-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
47 lines (44 loc) · 1.02 KB
/
docker-compose.dev.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
46
47
version: '3'
services:
touist_nginx:
image: touist/editor-nginx:latest
container_name: touist_nginx
build: ./touist-nginx
ports:
- 80:80
environment:
- HOST=${HOST}
- PORT=80
- HOST_API=touist_server
- PORT_API=8000
- HOST_WWW=touist_ide
- PORT_WWW=8080
depends_on:
- touist_server
- touist_ide
volumes:
- ./touist-nginx/nginx.conf:/etc/nginx/conf.d/nginx.tmpl
touist_server:
image: touist/editor-server:latest
container_name: touist_server
build: ./touist-server
environment:
- HOST=${HOST}
- BASE=/api
- PORT=8000
- ENV=dev
command: cargo run
volumes:
- ./touist-server/src:/usr/src/app/src
touist_ide:
image: touist/editor-ide:latest
container_name: touist_ide
build: ./touist-ide
environment:
- HOST=${HOST}
- PORT=8080
- API_URL=http://${HOST}/api
command: yarn dev
volumes:
- ./touist-ide:/usr/src/app
- /usr/src/app/node_modules