-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
84 lines (75 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3"
volumes:
db-data:
pgadmin4-var-lib-postgres:
networks:
database:
driver: bridge
esqlate:
driver: bridge
services:
db:
image: postgres:12
environment:
- POSTGRES_PASSWORD=postgres
# ports:
# - "127.0.0.1:5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- database
db_loader:
build:
context: ./node_modules/esqlate-server
dockerfile: Dockerfile-load-northwind-example-database
environment:
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=postgres
- PGHOST=db
networks:
- database
server:
build:
context: ./node_modules/esqlate-server
dockerfile: Dockerfile
environment:
# - DEFINITION_DIRECTORY=definition
- LISTEN_PORT=80
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=postgres
- PGHOST=db
volumes:
# - ./esqlate-server/example_definition:/esqlate-server/definition:ro # To use this uncomment the DEFINITION_DIRECTORY comment without environment
- ./persistence:/node_modules/esqlate-server/persistence
networks:
- database
- esqlate
reaper:
build:
context: ./node_modules/esqlate-server
dockerfile: Dockerfile-reaper
environment:
- AGE_BEFORE_CLEANING=1
- LOCATION=./persistence
volumes:
- ./persistence:/node_modules/esqlate-server/persistence
front:
build:
context: ./node_modules/esqlate-front
dockerfile: Dockerfile
environment:
- API_SERVER=/esqlate-server/
- LISTEN_PORT=80
- HOST=0.0.0.0 # Make sirv listen on all IPs for NGINX
networks:
- esqlate
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "127.0.0.1:8800:80"
networks:
- esqlate