-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
81 lines (75 loc) · 1.97 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
73
74
75
76
77
78
79
80
81
#
# REQUIRED environment variables
#
# - YOUR_GITHUB_USER
# - YOUR_USERS_SERVICE_URL
# - YOUR_MOVIES_SERVICE_URL
#
version: '3'
services:
users-db:
image: alejandrorey/users-db:latest
container_name: users-db
build: ./services/users/src/db
# ports:
# - '4002:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
movies-db:
image: alejandrorey/movies-db:latest
container_name: movies-db
build: ./services/movies/src/db
# ports:
# - '4004:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
users-service:
image: alejandrorey/users-service:latest
container_name: users-service
build: ./services/users/
ports:
- '3002:3000'
environment:
- DATABASE_URL=postgres://postgres:postgres@users-db:5432/users
- TOKEN_SECRET=Zed-Is-Dead-Baby-Zed-Is-Dead
- NEW_RELIC_APP_NAME=users-service
- NEW_RELIC_LICENSE_KEY=${YOUR_LICENSE_KEY}
depends_on:
- users-db
links:
- users-db
movies-service:
image: alejandrorey/movies-service:latest
container_name: movies-service
build: ./services/movies/
ports:
- '3004:3000'
environment:
- USERS_SERVICE_URL=${YOUR_USERS_SERVICE_URL}
- DATABASE_URL=postgres://postgres:postgres@movies-db:5432/movies
- TOKEN_SECRET=Zed-Is-Dead-Baby-Zed-Is-Dead
- NEW_RELIC_APP_NAME=movies-service
- NEW_RELIC_LICENSE_KEY=${YOUR_LICENSE_KEY}
depends_on:
- movies-db
- users-service
links:
- movies-db
- users-service
web-service:
image: alejandrorey/web-service:latest
container_name: web-service
build: ./services/web/
ports:
- '4000:3000'
environment:
- REACT_APP_USERS_SERVICE_URL=${YOUR_USERS_SERVICE_URL}
- REACT_APP_MOVIES_SERVICE_URL=${YOUR_MOVIES_SERVICE_URL}
depends_on:
- users-service
- movies-service
links:
- users-service
- movies-service