-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (68 loc) · 1.4 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
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
version: "3.8"
services:
api:
build: .
container_name: base-registries-api
hostname: base-registries-api
environment:
DB_USER: postgres
DB_PASSWORD: dev
DB_HOST: db
DB_PORT: 5432
DB_DATABASE: base_registries
DOMAIN_NAME: xxx
ports:
- 3000:3000
depends_on:
- db
links:
- db
command: [ "node", "lib/api.js" ]
fetcher:
build: .
container_name: base-registries-fetcher
hostname: base-registries-fetcher
environment:
DB_USER: postgres
DB_PASSWORD: dev
DB_HOST: db
DB_PORT: 5432
DB_DATABASE: base_registries
API_KEY: xxx
depends_on:
- db
links:
- db
command: [ "node", "lib/fetcher.js" ]
db:
build: ./database
container_name: base-registries-db
hostname: base-registries-db
restart: always
environment:
POSTGRES_DB: base_registries
POSTGRES_USER: postgres
POSTGRES_PASSWORD: dev
ports:
- 5432:5432
dba:
image: dpage/pgadmin4:5.7
container_name: base-registries-dba
hostname: base-registries-dba
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: dev
ports:
- 8001:80
depends_on:
- db
links:
- db
loadbalancer:
container_name: base-registries-nginx
build: ./nginx
tty: true
links:
- api
ports:
- 80:80