-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 867 Bytes
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
version: "3"
services:
db:
image: mysql:5.7
container_name: hp-api-mysql
restart: always
volumes:
- ../mysql_data:/var/lib/mysql
ports:
- 3306:3306
env_file:
- vars.env
api:
build: .
container_name: hp-api
restart: always
env_file:
- vars.env
volumes:
- ./static:/code/static
ports:
- 8001:8001
working_dir: /code
depends_on:
- db
ui:
build: https://github.com/HiddenPreprints/web-ui.git
container_name: hp-ui
restart: always
environment:
- API_URL=http://nginx:8000
ports:
- 3000:3000
depends_on:
- api
nginx:
image: nginx:1.17
container_name: hp-api-nginx
restart: always
ports:
- 8000:8000
volumes:
- ./nginx:/etc/nginx/conf.d
- ./static:/static
depends_on:
- api