-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
74 lines (69 loc) · 1.67 KB
/
docker-compose.prod.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
71
72
73
74
version: "3"
services:
ionic_app:
build:
context: ionic-app
dockerfile: Dockerfile.prod
args:
NODE_AUTH_TOKEN: ${NODE_AUTH_TOKEN}
ports:
- 3000:3000
depends_on:
- nest_api
nest_api:
build:
context: nest-api
dockerfile: Dockerfile.prod
args:
NODE_AUTH_TOKEN: ${NODE_AUTH_TOKEN}
environment:
METADATA_SERVICE_URL: http://metadata_service:3003
POSTER_SERVICE_URL: http://poster_service:3002
ports:
- 3001:3001
depends_on:
- metadata_service
- poster_service
poster_service:
build:
context: poster-service
dockerfile: Dockerfile.prod
args:
NODE_AUTH_TOKEN: ${NODE_AUTH_TOKEN}
environment:
API_KEY: ${OMDB_API_KEY}
ports:
- 3002:3002
metadata_service:
build:
context: metadata-service
dockerfile: Dockerfile.prod
args:
NODE_AUTH_TOKEN: ${NODE_AUTH_TOKEN}
environment:
DATABASE_HOSTNAME: metadata_db
DATABASE_URL: postgres://kwiz:kwiz@metadata_db:5432/kwiz
POSTER_SERVICE_URL: http://poster_service:3002
ports:
- 3003:3003
depends_on:
- metadata_db
metadata_init:
build:
context: metadata-service/preprocessing
dockerfile: Dockerfile
environment:
DATABASE_HOSTNAME: metadata_db
DATABASE_URL: postgres://kwiz:kwiz@metadata_db:5432/kwiz
POSTER_SERVICE_URL: http://poster_service:3002
depends_on:
- metadata_db
- poster_service
metadata_db:
image: postgres:12.2-alpine
environment:
POSTGRES_USER: kwiz
POSTGRES_PASSWORD: kwiz
POSTGRES_DB: kwiz
ports:
- 5432:5432