-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (46 loc) · 1.19 KB
/
docker-compose.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
services:
db:
image: postgres:16
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PW}
- POSTGRES_DB=${DB_NAME}
volumes:
- source: ${PWD}/.volumes/postgresql
target: /var/lib/postgresql
type: bind
bind:
create_host_path: true
ports:
- "${DB_PORT}:5432"
cognito:
image: jagregory/cognito-local:latest
volumes:
- source: ${PWD}/.volumes/cognito
target: /app/.cognito
type: bind
bind:
create_host_path: true
ports:
- "${COGNITO_PORT}:9229"
# add an empty user pool json if not already existing, then run the service
entrypoint: >
/bin/sh -c "
[ ! -f /app/.cognito/db/${COGNITO_POOL_ID}.json ] &&
echo '{}' > /app/.cognito/db/${COGNITO_POOL_ID}.json
node /app/start.js;
"
bod:
image: postgis/postgis:13-3.4
environment:
- POSTGRES_USER=${BOD_USER}
- POSTGRES_PASSWORD=${BOD_PW}
- POSTGRES_DB=${BOD_NAME}
volumes:
- source: ${PWD}/.volumes/postgis
target: /var/lib/postgresql
type: bind
bind:
create_host_path: true
ports:
- "${BOD_PORT}:5432"