-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 958 Bytes
/
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
version: "3.9"
services:
gateway:
build: gateway
ports:
- "8080:3000"
depends_on:
- superheroes
- customers
environment:
HTTP_PORT: "3000"
AUTH_ENABLED: "true"
SUPERHEROES_SERVICE_HOST: "superheroes"
SUPERHEROES_SERVICE_PORT: "5000"
CUSTOMERS_SERVICE_HOST: "customers"
CUSTOMERS_SERVICE_PORT: "5010"
superheroes:
build: superheroes
environment:
HTTP_PORT: "5000"
ports:
- "8081:5000"
customers:
build: customers
depends_on:
- db
environment:
PORT: "5010"
MYSQL_HOST: "db"
MYSQL_USERNAME: "root"
MYSQL_PASSWORD: "password"
ports:
- "8082:5010"
db:
build: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: "customers"
#command: ["mysqld", "&&", "mysql", "-uroot", "-p\"password", "<", "/var/data/customers.sql"]