-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (124 loc) · 2.73 KB
/
docker-compose.yml
File metadata and controls
133 lines (124 loc) · 2.73 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '3'
services:
mysql:
image: mysql:8.0.22
command: --default-authentication-plugin=mysql_native_password
volumes:
- mysqlvol:/var/lib/mysql
- ./backup:/var/backup
environment:
MYSQL_ROOT_PASSWORD: defaultpassword
ports:
- "3309:3306"
phpmyadmin:
image: phpmyadmin
restart: always
links:
- mysql
environment:
MYSQL_USERNAME: 'root'
MYSQL_ROOT_PASSWORD: 'defaultpassword'
PMA_HOST: mysql
PMA_PORT: 3309
PMA_ARBITRARY: 1
ports:
- 8080:80
redis:
image: redis
ports:
- "6379:6379"
volumes:
- redisvol:/data
email-api:
build:
context: ./apps/email-api
dockerfile: Dockerfile
environment:
ports:
- "5000:5000"
volumes:
- ./apps/email-api:/usr/src/app
taxi-admin-api:
build:
context: .
dockerfile: apps/admin-api/Dockerfile
restart: always
depends_on:
- "mysql"
- "redis"
links:
- mysql
volumes:
- ./img:/app/uploads
- ./config:/app/config
environment:
- MYSQL_HOST=mysql
- REDIS_HOST=redis
ports:
- "4001:3000"
taxi-admin-panel:
build:
context: .
dockerfile: apps/admin-panel/Dockerfile
restart: always
volumes:
- taxiassets:/usr/share/nginx/html/assets
ports:
- "4003:80"
taxi-rider-api:
build:
context: .
dockerfile: apps/rider-api/Dockerfile
restart: always
depends_on:
- "mysql"
- "redis"
- "taxi-admin-api"
volumes:
- ./img:/app/uploads
- ./config:/app/config
environment:
- MYSQL_HOST=mysql
- GATEWAY_SERVER_URL=http://127.0.0.1:3333
- RIDER_SERVER_URL=http://127.0.0.1:4000
- ENCRYPTION_KEY=lPw3ethAy4WqnWa3b4TAbCUJr89RifEs
- REDIS_HOST=redis
ports:
- "4000:3000"
taxi-driver-api:
build:
context: .
dockerfile: apps/driver-api/Dockerfile
restart: always
depends_on:
- "mysql"
- "redis"
- "taxi-admin-api"
volumes:
- ./img:/app/uploads
- ./config:/app/config
environment:
- MYSQL_HOST=mysql
- GATEWAY_SERVER_URL=http://127.0.0.1:3333
- DRIVER_SERVER_URL=http://127.0.0.1:4002
- REDIS_HOST=redis
- ENCRYPTION_KEY=lPw3ethAy4WqnWa3b4TAbCUJr89RifEs
- DRIVERS_ALWAYS_ON=1
ports:
- "4002:3000"
payment-gateways:
image: ridyio/delivery-gateway-box
depends_on:
- "taxi-rider-api"
ports:
- "3333:3333"
environment:
- MYSQL_HOST=mysql
- TEST_MODE=true
- MYSQL_DB=ridy
- GATEWAY_SERVER_URL=http://0.0.0.0:3333
- ENCRYPTION_KEY=lPw3ethAy4WqnWa3b4TAbCUJr89RifEs
volumes:
redisvol:
mysqlvol:
taxiassets: