-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.31 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
# 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/ARG_ARCH:/go/bin
- ARG_PWD/.go/std:/usr/local/go/pkg/linux_ARG_ARCH_static
- ARG_PWD/.cache/go-build:/.cache/go-build
working_dir: /go/src/ARG_PKG
ports:
- "8082:8082"
command: /go/bin/ARG_BIN server --verbose
depends_on:
- postgres
environment:
- PGHOST=postgres
- PGPASSWORD=password
- PGUSER=policystore
- POLICYSTORE_DATABASE_URL=postgres://policystore:password@postgres:5432/policystore_development?sslmode=disable
- POLICYSTORE_ENCRYPTION_PASSWORD=topsecretpassword
- POLICYSTORE_HASHID_SALT=Mm0W1jBfK3NUXcELUFEyIA==
- POLICYSTORE_DASHBOARD_URL=http://dashboard.com
postgres:
build:
context: ./docker/postgres
ports:
- "5432"
volumes:
- postgres_vol:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=policystore
- POSTGRES_DB=postgres
- DATABASES=policystore_development,policystore_test
volumes:
postgres_vol: