-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
42 lines (40 loc) · 1.05 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
version: "3.8"
services:
gis-backend:
build:
context: .
ports:
- 8081:8081
environment:
- SERVER_PORT=8080
- AUTH0_DOMAIN=$AUTH0_DOMAIN
- AUTH0_AUDIENCE=$AUTH0_AUDIENCE
env_file:
- database.env
- common.env
volumes:
- ./src:/usr/app/src
- ./test:/usr/app/test
- ./package.json:/usr/app/package.json
- ./tsconfig.json:/usr/app/tsconfig.json
- /usr/app/node_modules
- ./nodemon.json:/usr/app/nodemon.json
command: npm run dev --url=$AUTH_TOKEN_URL --client_id=$AUTH_CLIENT_ID --client_secret=$AUTH_CLIENT_SECRET --audience=$AUTH_AUDIENCE --grant_type=$AUTH_GRANT_TYPE
db:
image: postgres
restart: always
env_file:
database.env
volumes:
- ./database:/docker-entrypoint-initdb.d
- database-data:/var/lib/postgresql/data/
ports:
- 5432:5432
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
database-data: