-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.01 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
44
45
46
47
48
49
50
51
version: "3"
services:
client:
build:
context: ./client
target: "development"
volumes:
- ./client:/client
- npm-cache:/client/node_modules
- nuxt-cache:/client/.nuxt
ports:
- "3000:3000"
working_dir: /client
command: sh -c "yarn && yarn dev"
environment:
- HOST=0.0.0.0
server:
build:
context: .
dockerfile: server/Dockerfile
target: development
tty: true
volumes:
- type: bind
source: ./server
target: /server
working_dir: /server
command: python main.py
environment:
FLASK_ENV: development
FLASK_APP: app
FLASK_RUN_PORT: 8080
ports:
- "8081:8080"
restart: always
swagger-ui:
image: swaggerapi/swagger-ui:latest
container_name: dena-hackathon-swagger
environment:
API_URL: api-document.yml
volumes:
- ./api-document.yml:/usr/share/nginx/html/api-document.yml
ports:
- 127.0.0.1:80:8080
volumes:
npm-cache:
nuxt-cache: