-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 940 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 940 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
41
42
43
# This docker-compose.yml is intended to run containers as a simulated
# production environment.
# To run use:
# docker compose build
# Then:
# docker compose up
services:
api:
extends:
file: common-services.yml
service: api
depends_on:
run_migrations:
condition: service_completed_successfully
# 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
build:
target: production
depends_on:
run_migrations:
condition: service_completed_successfully
run_migrations:
extends:
file: common-services.yml
service: run_migrations
build:
target: production
depends_on:
postgres_db_dev:
condition: service_healthy
postgres_db_dev:
extends:
file: common-services.yml
service: postgres_ssl