-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.15 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
services:
gq-gateway:
build:
context: .
dockerfile: docker/gateway.Dockerfile
ports:
- 3000:8080
environment:
# The trailing slash is very important so nginx rewrites the URL correctly
# (https://nginx.org/en/docs/http/ngx_http_proxy_module.html?&_ga=1.74997266.187384914.1443061481#proxy_pass)
FRONTEND_URL: http://gq-playground:3000/
DOCS_URL: http://gq-docs:8080/
API_URL: http://gq-server:3000/
depends_on:
- gq-playground
- gq-docs
- gq-server
gq-playground:
build:
context: .
dockerfile: docker/playground.Dockerfile
gq-docs:
build:
context: .
dockerfile: docker/docs.Dockerfile
gq-server:
build:
context: .
dockerfile: docker/server.Dockerfile
environment:
DATABASE_URL: postgres://postgres:password@db:5432/db
depends_on:
- db
db:
image: docker.io/postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_period: 5s
interval: 5s
timeout: 5s
retries: 10