-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 993 Bytes
/
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
48
49
50
services:
api:
extends:
file: developers-italia-api/docker-compose.yml
service: api
env_file: ".env" # Must define PASETO_KEY
environment:
- GOFLAGS=-buildvcs=false
db:
extends:
file: developers-italia-api/docker-compose.yml
service: db
volumes:
- pgdata:/var/lib/postgresql/data
crawler:
build:
context: ./publiccode-crawler
depends_on:
- api
networks:
- default
env_file: ".env" # Must define PASETO_KEY and GITHUB_TOKEN
environment:
- API_BASEURL=http://api:3000/v1/
- API_BEARER_TOKEN=${API_BEARER_TOKEN}
web:
image: node:22
depends_on:
- api
networks:
- default
ports:
- "8080:8080"
env_file: ".env" # Must define PASETO_KEY
environment:
- API_BASEURL=http://api:3000/v1/
volumes:
- ./web:/app
working_dir: /app
command: >
bash -c "
npm install
npm start
"
volumes:
pgdata: