-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
135 lines (133 loc) · 2.84 KB
/
docker-compose.yaml
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: "3.8"
x-build: &dockerfile-dev-build
context: .
dockerfile: Dockerfile.dev
services:
db:
image: postgres:13.2-alpine
# "root" execution of the PostgreSQL server is not permitted.
user: postgres
environment:
POSTGRES_USER: boss_role
POSTGRES_PASSWORD: boss_password
volumes:
- ./scripts/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
connection-pool:
image: edoburu/pgbouncer:1.15.0
user: postgres
environment:
# You can use env variables to generate your pgbouncer.ini
# See more details here: https://github.com/edoburu/docker-pgbouncer/blob/v1.15.x/entrypoint.sh
# https://www.pgbouncer.org/features.html
POOL_MODE: transaction
volumes:
- ./pgbouncer:/etc/pgbouncer
remote-interpreter:
build: *dockerfile-dev-build
volumes:
- .:/app
env_file: .env.development
ports:
- "8000:8000"
depends_on:
- db
command:
[
"./scripts/wait-for-it.sh",
"db:5432",
"-t",
"120",
"--",
"./scripts/start-development.sh",
]
jafar-app:
build: *dockerfile-dev-build
volumes:
- .:/app
env_file: .env.development
environment:
DB_HOST: "connection-pool"
DB_USER: role_jafar_dev
ports:
- "8001:8000"
depends_on:
- db
command:
[
"./scripts/wait-for-it.sh",
"db:5432",
"-t",
"120",
"--",
"./scripts/start-development.sh",
]
iago-app:
build: *dockerfile-dev-build
volumes:
- .:/app
env_file: .env.development
environment:
DB_HOST: "connection-pool"
DB_USER: role_iago_dev
ports:
- "8002:8000"
depends_on:
- db
command:
[
"./scripts/wait-for-it.sh",
"db:5432",
"-t",
"120",
"--",
"./scripts/start-development.sh",
]
jasmine-app:
build: *dockerfile-dev-build
volumes:
- .:/app
env_file: .env.development
environment:
DB_HOST: "connection-pool"
DB_USER: role_jasmine_dev
ports:
- "8003:8000"
depends_on:
- db
command:
[
"./scripts/wait-for-it.sh",
"db:5432",
"-t",
"120",
"--",
"./scripts/start-development.sh",
]
tests:
build: *dockerfile-dev-build
volumes:
- .:/app
env_file: .env.development
depends_on:
- db
command:
[
"./scripts/wait-for-it.sh",
"db:5432",
"-t",
"120",
"--",
"./scripts/start-tests.sh",
]
lint:
build: *dockerfile-dev-build
volumes:
- .:/app
command: ["./scripts/start-lint.sh"]
formatter:
build: *dockerfile-dev-build
volumes:
- .:/app
command: ["./scripts/start-formatter.sh"]