-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
70 lines (69 loc) · 1.61 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
database:
image: postgres:12
restart: always
environment:
POSTGRES_PASSWORD: kittycatcat
POSTGRES_USER: cat
POSTGRES_DB: caats
TZ: Europe/Warsaw
app:
image: ghcr.io/kpostekk/caats:latest-app
build:
target: app
dockerfile: Dockerfile
context: .
args:
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
restart: always
environment:
TZ: Europe/Warsaw
NEST_ADDR: nest:3000
depends_on:
- database
nest:
image: ghcr.io/kpostekk/caats:latest
build:
target: nest
dockerfile: Dockerfile
context: .
restart: always
env_file:
- .env
environment:
DATABASE_URL: postgres://cat:kittycatcat@database/caats
TZ: Europe/Warsaw
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
MEILI_URL: http://meilisearch:7700
depends_on:
- database
nest-migrate:
image: ghcr.io/kpostekk/caats:latest
command: 'pnpm prisma migrate deploy'
environment:
DATABASE_URL: postgres://cat:kittycatcat@database/caats
depends_on:
- database
scrapy:
image: ghcr.io/kpostekk/caats:latest-scrapy
build:
target: scraper
dockerfile: Dockerfile
context: .
restart: always
depends_on:
- app
environment:
NEST_GRAPHQL: http://192.168.1.171:3000/graphql
SCRAPY_RATE: 30
TZ: Europe/Warsaw
TOKEN: ${SCRAPY_TOKEN}
meilisearch:
image: getmeili/meilisearch:latest
restart: always
environment:
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
volumes:
- meilisearch-data:/meili_data
volumes:
meilisearch-data: