forked from HTTP-APIs/hydrus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 972 Bytes
/
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
version: "2"
services:
hydrus_server:
restart: always
build: ./
ports:
- "8080:8080"
environment:
# - HYDRUS_SERVER_URL=http://192.168.99.100:8081/ ## For windows 10
# - HYDRUS_SERVER_URL=http://54.169.232.177:8080/
- DEBUG=1
- API_NAME=api
# relative path to the ApiDoc, from the project root
- APIDOC_REL_PATH=hydrus/samples/hydra_doc_sample.py
- DB_URL=sqlite:///database.db
#- DB_URL=postgresql://hydra:hailhydra@postgres_db:9001/hydrus
- PORT=8080 # shall match with "ports" above
networks:
main:
aliases:
- hydrus_server
# postgres:
# restart: always
# environment:
# - POSTGRES_USER=hydra
# - POSTGRES_PASSWORD=hailhydra
# - POSTGRES_DB=hydrus
# image: postgres:latest
# ports:
# - "9001:5432"
# networks:
# main:
# aliases:
# - postgres_db
networks:
main: