generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.build.yml
52 lines (49 loc) · 1.6 KB
/
docker-compose.build.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
# Build environment
services:
builder:
depends_on:
- postgresql
build:
context: .
dockerfile: Dockerfile.build
environment:
DB_PASSWORD: "changeIT!"
DB_URL: jdbc:postgresql://postgresql:5432/prime_data_hub
DB_USER: "prime"
FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT: 1
POSTGRES_URL: jdbc:postgresql://postgresql:5432/prime_data_hub
# cf: docker-compose.yml: this is the name of the prime_dev service as defined there
PRIME_RS_API_ENDPOINT_HOST: prime_dev
volumes:
- type: bind
source: ./
target: /src
working_dir: /src
networks:
- prime-router_build
# NOTE: this is part of this docker compose file and not the
# "development infrastructure" docker compose file because we want to just
# spin up these two items in the GitHub build (and not everything else);
# if that changes, we'll move this service into the "main" docker compose file
# There is also no adminer or any other Admin UI that is part of this
# build docker compose as we do not want to dictate that.
# You can connect using psql, or pgAdmin, or ... just point at 5432 on your local host
postgresql:
build:
context: ../.environment/docker/docker-compose/
dockerfile: Dockerfile.postgres
restart: always
environment:
POSTGRES_DB: "prime_data_hub"
POSTGRES_PASSWORD: "changeIT!"
POSTGRES_USER: "prime"
ports:
- 5432:5432
volumes:
- vol_postgresql_data:/var/lib/postgresql/data
networks:
- prime-router_build
networks:
prime-router_build:
volumes:
vol_postgresql_data: