-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (63 loc) · 1.41 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
version: "3.7"
services:
authentication:
image: davidchristie/authentication:${VERSION:-latest}
ports:
- 5000:5000
environment:
- JWT_SECRET=jwt_secret123
- PRISMA_ENDPOINT=http://prisma:4466/social-network/production
depends_on:
- prisma
kafka:
image: spotify/kafka
ports:
- "2181:2181"
- "9092:9092"
environment:
- "ADVERTISED_HOST=kafka"
- "ADVERTISED_PORT=9092"
- "AUTO_CREATE_TOPICS=true"
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
prisma:
image: prismagraphql/prisma:1.24
restart: always
ports:
- "4467:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: prisma
migrations: true
depends_on:
- mysql
public-api:
image: davidchristie/public-api:${VERSION:-latest}
ports:
- 4000:4000
environment:
- AUTHENTICATION_ENDPOINT=http://authentication:5000
- PRISMA_ENDPOINT=http://prisma:4466/social-network/production
depends_on:
- authentication
- prisma
web-client:
image: davidchristie/web-client:${VERSION:-latest}
ports:
- 3000:3000
depends_on:
- public-api
volumes:
mysql: