-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.18 KB
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
# This file should not be used as is - instead should be used via Make which
# rewrites the below to match the current build environment.
version: '3'
services:
app:
build:
context: .
dockerfile: ARG_DOCKERFILE
image: ARG_IMAGE
volumes:
- ARG_PWD/.go:/go
- ARG_PWD:/go/src/ARG_PKG
- ARG_PWD/bin:/go/bin
- ARG_PWD/.go/std:/usr/local/go/pkg/linux_amd64_static
- ARG_PWD/.go/cache:/.cache/go-build
working_dir: /go/src/ARG_PKG
ports:
- "3001:3001"
command: /go/bin/ARG_BIN server --verbose --no-indexer
depends_on:
- postgres
environment:
- PGHOST=postgres
- PGPASSWORD=password
- PGUSER=kudzu
- KUDZU_DATABASE_URL=postgres://kudzu:password@postgres:5432/kudzu_development?sslmode=disable
env_file: .env
postgres:
build:
context: ./docker/postgres
ports:
- "5432"
volumes:
- postgres_vol:/var/lib/postgresql/data
- ARG_PWD/docker/postgres/psqlrc:/usr/local/etc/postgresql/psqlrc
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=kudzu
- POSTGRES_DB=postgres
- DATABASES=kudzu_development,kudzu_test
volumes:
postgres_vol: