-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.development.yml
74 lines (66 loc) · 1.65 KB
/
docker-compose.development.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This docker-compose.development.yml is intended to run containers
# for local development.
# To run use:
# docker compose -f docker-compose.development.yml build
# Then:
# docker compose -f docker-compose.development.yml up
version: "3.9"
name: sdvv-backend-develop
services:
angular:
build:
dockerfile: Dockerfile
context: https://github.com/opensandiego/sdvv-frontend.git#main
args:
buildtype: "build:api:local"
ports:
- "4200:80"
depends_on:
api:
condition: service_healthy
api:
extends:
file: common-services.yml
service: api
build:
target: development
depends_on:
run_migrations:
condition: service_completed_successfully
volumes:
- .:/usr/src/app
command: >
bash -c "npm run start:web:dev"
# This runs every time docker compose up is run
# This takes a few minutes to complete
initialize_data:
extends:
file: common-services.yml
service: initialize_data
depends_on:
run_migrations:
condition: service_completed_successfully
volumes:
- .:/usr/src/app
run_migrations:
extends:
file: common-services.yml
service: run_migrations
depends_on:
postgres_db_dev:
condition: service_healthy
postgres_db_dev:
extends:
file: common-services.yml
service: postgres_base
build:
target: build
environment:
POSTGRES_HOST_AUTH_METHOD: trust
# # Uncomment out the service below to browse the database with pgadmin
# pgadmin:
# extends:
# file: common-services.yml
# service: pgadmin
# depends_on:
# - postgres_db_dev