forked from dosco/graphjin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 815 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
version: "3.4"
services:
db:
image: postgres:12
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
payments:
image: rivancic/json-server-faker:latest
volumes:
- ./examples/webshop/config/run.sh:/run.sh
- ./examples/webshop/config/file.js:/data/file.js
ports:
- "4000:80"
api:
build:
context: .
target: go-build
environment:
GO_ENV: "development"
GJ_DATABASE_HOST: db
GJ_DATABASE_USER: postgres
GJ_DATABASE_PASSWORD: postgres
CGO_ENABLED: 0
PORT: 8080
ports:
- "8080:8080"
volumes:
- .:/app
- ./examples/webshop/config:/app/config
working_dir: /app
command: wtc
depends_on:
- db
# - rails_app
# - redis