-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (113 loc) · 2.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
119 lines (113 loc) · 2.53 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
postgres:
image: postgres:latest
container_name: postgres
hostname: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=claim
volumes:
- postgres-data:/var/lib/postgresql/data
# Read `README.md` for more info
# - ../claim.backup:/claim.backup
restart: unless-stopped
networks:
- trust-claim
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin4
restart: always
depends_on:
- postgres
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: postgres@example.com
PGADMIN_DEFAULT_PASSWORD: postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
- trust-claim
profiles:
- pgadmin
- dev
trust-claim-backend:
build:
context: .
dockerfile: Dockerfile
container_name: trust-claim-backend
depends_on:
- postgres
ports:
- 9000:9000
restart: always
env_file:
- path: ./.env
required: true
networks:
- trust-claim
profiles:
- prod
trust-claim-backend-dev:
init: true
build:
context: .
dockerfile: dev.Dockerfile
container_name: trust-claim-backend-dev
depends_on:
- postgres
- trust-claim-data-pipeline
ports:
- 9000:9000
restart: always
profiles:
- dev
env_file:
- path: ./.env
required: true
networks:
- trust-claim
develop:
watch:
- action: rebuild
path: ./package.json
target: /usr/src/app/package.json
- action: rebuild
path: ./yarn.lock
target: /usr/src/app/yarn.lock
- action: rebuild
path: ./tsconfig.json
target: /usr/src/app/tsconfig.json
- action: rebuild
path: ./prisma
target: /usr/src/app/prisma
- action: sync
path: src
target: /usr/src/app/src
trust-claim-data-pipeline:
build:
# get this from https://github.com/Whats-Cookin/trust-claim-data-pipeline
context: ../trust-claim-data-pipeline
dockerfile: Dockerfile
container_name: trust-claim-data-pipeline
environment:
- DB_HOST=postgres
- DB_NAME=claim
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
restart: always
depends_on:
- postgres
ports:
- 5000:5000
networks:
- trust-claim
volumes:
postgres-data:
pgadmin-data:
networks:
trust-claim: